<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=103&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / vdev testing]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=103</link>
		<description><![CDATA[The most recent posts in vdev testing.]]></description>
		<lastBuildDate>Sun, 08 Jan 2017 11:21:28 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=462#p462</link>
			<description><![CDATA[<p>As I restarted a vdev setup from scratch, I was reminded that the dvb adapter end points get rather restrictive file permissions, e.g: </p><div class="codebox"><pre><code>crw------- 1 root root 212, 0 Jan  8 21:54 demux0
crw------- 1 root root 212, 1 Jan  8 21:54 dvr0
crw------- 1 root root 212, 3 Jan  8 21:54 frontend0
crw------- 1 root root 212, 2 Jan  8 21:54 net</code></pre></div><p>This is something one can remedy by an action, say, &quot;/etc/vdev/actions/dvb.act&quot; as follows:</p><div class="codebox"><pre><code>[vdev-action]
event=add
path=^dvb/adapter[0-9]+/[^/]+$
VAR_PERMISSIONS_GROUP=video
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh</code></pre></div><p>I.e., give rw permission for group video to all endpoints. I&#039;m adding that action to the standard set in a forth-coming version.</p><p>The script in detail: the &quot;event&quot; category is limited to act on new path names, and the path name (following &quot;/dev/&quot;) is restricted (through a POSIX regular expression) to the &quot;adapterN/blah&quot; end points. This action utilises the standard permissions setting helper, which makes good use of the given &quot;VAR_*&quot; variables.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 08 Jan 2017 11:21:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=462#p462</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=461#p461</link>
			<description><![CDATA[<p>btw, re (8):</p><div class="quotebox"><cite>chrisw wrote:</cite><blockquote><div><p>8) I attached an external USB HDTV adapter (PCTV 290e) and the expected /dev/dvb devices were created.<br />However for to test this further on a proper multi-tuner mythtv backend (with the need for consistent and meaningful names), I would need to be able to recreate the following udev rules in vdev:</p><p># PCTV 290e single tuner USB stick<br /># --------------------------------<br /># Create symlinks /dev/dvb/adapterPCTV290e/* pointing to PCTV 290e adapter (has unique attributes, so can find wherever it is)</p></div></blockquote></div><p>I think I would consider having a separate naming script, with code like</p><div class="codebox"><pre><code>ln -sTf adapter0  /dev/dvb/adapterPCTV290e</code></pre></div><p> to be run when starting the mythtv app, or manually, rather than making it vdevd magic; especially since there might be several adapters of the same brand.</p><p>E.g., for my own TV system I have 4 receivers of the same brand, so I can&#039;t use your approach off hand. (A separate comment is that it&#039;s enough to symlink to the adapterX directory rather than symlink each &quot;control interface&quot; [or what it&#039;s called]) As you might know, the product name for /dev/dvb/adapterX is (currently) available at e.g. </p><div class="codebox"><pre><code>cat /sys/class/dvb/dvbX.demux0/device/product</code></pre></div><p>But, I suppose there could be a helper script improvement for this in some way.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 08 Jan 2017 00:42:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=461#p461</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=460#p460</link>
			<description><![CDATA[<p>ok. I&#039;ve added (A) as issue for <a href="https://git.devuan.org/ralph.ronnquist/vdev" rel="nofollow">https://git.devuan.org/ralph.ronnquist/vdev</a>. The daemon should indeed be robust against malformed action declarations as well as helper script errors.</p><p>Re (B): yes, most of the error messages are at a severe extreme of cryptic. Mostly they are s.c. standard error codes, and -22 would be called EINVAL.&#160; In your case, I&#039;m guessing there was some output lines before that error line, such as:</p><div class="codebox"><pre><code>Failed to set mountpoint, config-&gt;mountpoint = ...</code></pre></div><p> or similar, which sometimes could help a geek to pinpoint the problem.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 07 Jan 2017 23:29:12 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=460#p460</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=459#p459</link>
			<description><![CDATA[<p>Thanks Ralph,</p><p>In poking around trying to cobble together an .act file for the PCTV 290e I found two things:</p><p>A) <br />I managed to break vdev so that the initrd gave an error during boot (I didn&#039;t record at the time) boot then continued but something was obviously not setup as before because<br />the boot finished at a text terminal (rather than GUI login screen).</p><p>I think this was caused by my starting to create file /etc/vdev/actions/pctv290e.act(**) with entries certain to be<br />syntactically incorrect at that time, getting called away, saving the half done file and shutting down.<br />(**)</p><div class="codebox"><pre><code>-----Content of /etc/vdev/actions/pctv290e.act-----
[vdev-action]
event=any
OS_SUBSYSTEM=dvb
rename_command=

[vdev-action]
event=any
OS_SUBSYSTEM=video4linux
VAR_V4L_OWNER=root
VAR_V4L_GROUP=video
VAR_V4L_MODE=0660
helper=v4l.sh
daemonlet=true

KERNEL==&quot;*demux0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/demux0&quot;
KERNEL==&quot;*dvr0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/dvr0&quot;
KERNEL==&quot;*frontend0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/frontend0&quot;
KERNEL==&quot;*net0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/net0&quot;
-----End of Content of /etc/vdev/actions/pctv290e.act-----</code></pre></div><p>On return and reboot the system came up as described. I attempted to fix by login as root, rerun &quot;/usr/share/vdev/vdev-install.sh vdev&quot;, reboot. </p><p>This made things worse and the boot process froze in the initrd stage and I had to use the power button to shurdown and recover by booting from a refracta<br />live USB stick, repairing the devuan partition, mounting &amp; chrooting to the devuan partition then running &quot;/usr/share/vdev/vdev-install.sh udev&quot;. This booted as normal to the GUI.</p><p>I then moved the file /etc/vdev/actions/pctv290e.act outside the vdev structure, ran &quot;/usr/share/vdev/vdev-install.sh vdev&quot; and rebooted. This booted as normal to the GUI</p><p>So it *appears* that vdev is not handling malfored rules/actions in a sensible way (or it might be me doing something really stupid!). <br />Obviously this would require further testing to prove and set out the steps to reproduce and to properly note the errors.<br />Shall I do this? If I do how/where file a bug report?</p><p>B)<br />I thought it would be helpful to watch what vdev was doing do I tried running vdevd in the foreground:<br />i) stop the deamon <br />&#160; &#160;/etc/init.d/vdev stop<br />ii) start vdevd in the foreground<br />&#160; &#160; vdevd -f -v1<br />This failed with the following error: &quot;28581:00007FA49BEBF700: [&#160; &#160; &#160; &#160; &#160; main.c:0053] main: ERROR: vdev_init rc = -22&quot;</p><p>Any ideas what I did wrong?</p><p>Too hot to think? You need some good old Manchester cold grey drizzle!</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisw)]]></author>
			<pubDate>Sat, 07 Jan 2017 20:32:59 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=459#p459</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=456#p456</link>
			<description><![CDATA[<p>Re USB, (7): the overall issue is that several packages have been coded to utilize udev, via the rules files, for automagic hotplug handling, and they (of course) don&#039;t include a corresponding configuration (action+helper) for utilizing vdev.&#160; I did start on a&#160; &quot;udev rules&quot;-to-&quot;vdev conf&quot;, but stopped (apart from incorporating scanner recognition into vdev), as I rather quickly saw it leading to insanity (mine). So, this aspect is in a state of pass the bucket game, where it really should be up to those other package developers to add their hotplug configuration wrt vdev.</p><p>That leads to your pt.8, and highlights the need for more/better documentations (and tools?) of how to &quot;program&quot; vdev.</p><p>(sorry. right now it&#039;s too hot here to think; I&#039;ll try again in the weekend...)</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 06 Jan 2017 06:09:49 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=456#p456</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=445#p445</link>
			<description><![CDATA[<p>7. Wastebasket (trash icon) works as expected - both the desktop icon &amp; the panel item</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisw)]]></author>
			<pubDate>Sun, 01 Jan 2017 19:37:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=445#p445</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=444#p444</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... <br />7.&#160; My guess is that gvfs needs some function in udev to tell it something. I run without gvfs here, so I wouldn&#039;t have noticed that. <br />&#160; &#160; &#160;Does your trash icon work?<br />8.&#160; You might need to alter some action files or a helper script. The most I&#039;ve done with that was edit a pattern to find a device and change permissions.</p><p>Read Jude&#039;s documentation on the action files, (Appendix A)<br /><a href="https://git.devuan.org/unsystemd/vdev/blob/master/how-to-test.md" rel="nofollow">https://git.devuan.org/unsystemd/vdev/b … to-test.md</a><br /><a href="https://github.com/jcnelson/vdev/blob/master/how-to-test.md" rel="nofollow">https://github.com/jcnelson/vdev/blob/m … to-test.md</a></p><p>Look inside the helper scripts for clues. (in /lib/vdev)</p><p>Sorry I can&#039;t be more specific. It&#039;s a big black box. That I was able to do anything with the action files and permissions.sh was a surprise to me.</p></div></blockquote></div><p>7. I don&#039;t have the trash icon configured - will give it a try</p><p>8. Thanks for the pointer - I&#039;ll report back if I can get anywhere (but don&#039;t hold your breath!)</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisw)]]></author>
			<pubDate>Sun, 01 Jan 2017 17:52:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=444#p444</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=438#p438</link>
			<description><![CDATA[<p>Confirmed here, using vdev &quot;sdb1&quot; is referenced and symlinked in /dev/disk/by-label and /dev/disk/by-uuid but nothing for it in /dev/disk/by-id.</p>]]></description>
			<author><![CDATA[dummy@example.com (dzz)]]></author>
			<pubDate>Sat, 31 Dec 2016 15:55:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=438#p438</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=437#p437</link>
			<description><![CDATA[<p>You have to add code tags manually here. </p><p>I had a problem with refracta2usb in vdev. For some reason, it didn&#039;t recognize /dev/disk/by-id so I changed it to by-uuid. On the command line, it seems to work normally.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 31 Dec 2016 15:11:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=437#p437</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=436#p436</link>
			<description><![CDATA[<p>Same machine, got xfce4 installed and running now. Using gvfs from angband.pl (it doesn&#039;t depend libsystemd0) and consolekit2. I know from before that combination works with full functionality for user usb handling and shutdown/suspend/reboot. </p><p>With (e)udev : plugged USB appears on desktop and in thunar, correctly labelled (“sandisk”), can mount/umount/eject normally, as user</p><p>With vdev: Appears as “64 GB Volume”, No label. Cannot mount as user (except with pmount), as if it&#039;s seen as a fixed disk.</p><p>With udev:</p><p>:~$ /usr/sbin/hwinfo --usb|grep &quot;/dev/sd&quot;<br />&#160; Device File: /dev/sdb (/dev/sg2)<br />&#160; Device Files: /dev/sdb, /dev/disk/by-id/usb-_USB_Flash_Memory_0013729B6877EB8156390022-0:0, /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0</p><p>:~$ dmesg| tail -n 1|grep removable<br />[ 2058.054823] sd 5:0:0:0: [sdb] Attached SCSI removable disk</p><p>With vdev, hwinfo shows less complete detection:</p><p>:~$ /usr/sbin/hwinfo --usb|grep &quot;/dev/sd&quot;<br />&#160; Device File: /dev/sdb</p><p>:~$ dmesg| tail -n 1|grep removable<br />[&#160; 183.446863] sd 5:0:0:0: [sdb] Attached SCSI removable disk</p><p>I can&#039;t find any way to mark the above in a code box..</p>]]></description>
			<author><![CDATA[dummy@example.com (dzz)]]></author>
			<pubDate>Sat, 31 Dec 2016 14:55:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=436#p436</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=435#p435</link>
			<description><![CDATA[<p>1 - 5 look right.<br />6.&#160; I never looked in that file before.<br />7.&#160; My guess is that gvfs needs some function in udev to tell it something. I run without gvfs here, so I wouldn&#039;t have noticed that. <br />&#160; &#160; &#160;Does your trash icon work?<br />8.&#160; You might need to alter some action files or a helper script. The most I&#039;ve done with that was edit a pattern to find a device and change permissions.</p><p>Read Jude&#039;s documentation on the action files, (Appendix A)<br /><a href="https://git.devuan.org/unsystemd/vdev/blob/master/how-to-test.md" rel="nofollow">https://git.devuan.org/unsystemd/vdev/b … to-test.md</a><br /><a href="https://github.com/jcnelson/vdev/blob/master/how-to-test.md" rel="nofollow">https://github.com/jcnelson/vdev/blob/m … to-test.md</a></p><p>Look inside the helper scripts for clues. (in /lib/vdev)</p><p>Sorry I can&#039;t be more specific. It&#039;s a big black box. That I was able to do anything with the action files and permissions.sh was a surprise to me.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 31 Dec 2016 13:55:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=435#p435</guid>
		</item>
		<item>
			<title><![CDATA[Re: vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=434#p434</link>
			<description><![CDATA[<p>Old &quot;emachines&quot; laptop running Trinity Desktop and eudev, otherwise current (Devuan-) Jessie. Simply used dpkg -i on the three amd64 vdev debs.</p><p>Same result here with a plugged USB, no desktop notification. It does show in blkid and I can pmount it. Perhaps then, not your xfce4 configs at fault. Other machines here have xfce4, can test later.</p><p>I don&#039;t see any other problems. Last time I tried vdev there were lots including no mouse.</p>]]></description>
			<author><![CDATA[dummy@example.com (dzz)]]></author>
			<pubDate>Sat, 31 Dec 2016 12:41:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=434#p434</guid>
		</item>
		<item>
			<title><![CDATA[vdev testing]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=431#p431</link>
			<description><![CDATA[<p>First off, many thanks to Jude Nelson, Ralph Ronnquist and all others who have helped with vdev.<br />Below is some feedback from my initial try with vdev and request for help (see item 8) to get me a bit further.</p><p>Testing vdev on old Dell Inspiron 1525 running devuan beta2, kernel 3.16.0-4-amd64</p><p>1) I copied Ralph&#039;s packages from <a href="https://git.devuan.org/ralph.ronnquist/vdev/tree/master" rel="nofollow">https://git.devuan.org/ralph.ronnquist/vdev/tree/master</a>:<br />libudev1-compat_1.2.1_amd64.deb<br />libudev1-compat_1.2.1_i386.deb<br />vdev-initramfs_1.2.7_amd64.deb<br />vdev-initramfs_1.2.7_i386.deb<br />vdevd_2.0.2_amd64.deb<br />vdevd_2.0.2_i386.deb<br />to a local repository I maintain using aptly (this mostly contains mythtv packages I have compliled for devuan)</p><p>2) ensured my local repository was in /etc/apt/sources.lst</p><p>3) ran synaptic and &quot;reloaded&quot; (updated) then selected and installed libudev1-compat, vdev-initramfs and vdevd<br />NOTE: package libudev1-compat would not install properly with error message:<br />&quot;trying to overwite &#039;/usr/include/libudev.h&#039;, which is also in package libudev-dev_215-17+deb8u5&quot;<br />I therefore uninstalled libudev-dev and retried libudev1-compat which then installed without error</p><p>4) As root ran: /usr/share/vdev/vdev-install.sh dialog<br />and choose vdev then rebooted.</p><p>5) All appeared to work as expected (including WiFi)</p><p>6) Tried setting PERSISTENT_INTERFACE_NAMEs in /etc/vdev/ifnames.conf<br />for three network adapters internal WiFi, internal ethernet &amp; external USB ethernet adapter<br />This apparently had no effect even after reboot until I reran vdev-install.sh and rebooted (this is presumably<br />expected behaviour? but probably wants documenting)</p><p>7) Attaching a USB stick or a USB disk drive did not produce a &quot;mounting&quot; icon on the xfce4 desktop (as would happen with udev on this machine)<br />although everything was setup okay for manual mounting. Is this expected behavior? Running vdev-install.sh, choosing udev and reboot<br />and the xfce4 &quot;mounting&quot; icons again worked as expected, reverting to vdev and the xfce4 &quot;mounting&quot; icons failed to work. </p><p>8) I attached an external USB HDTV adapter (PCTV 290e) and the expected /dev/dvb devices were created.<br />However for to test this further on a proper multi-tuner mythtv backend (with the need for consistent and meaningful names), <br />I would need to be able to recreate the following udev rules in vdev:</p><p># PCTV 290e single tuner USB stick<br /># --------------------------------<br /># Create symlinks /dev/dvb/adapterPCTV290e/* pointing to PCTV 290e adapter (has unique attributes, so can find wherever it is)<br />KERNEL==&quot;*demux0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/demux0&quot;<br />KERNEL==&quot;*dvr0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/dvr0&quot;<br />KERNEL==&quot;*frontend0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/frontend0&quot;<br />KERNEL==&quot;*net0&quot;, SUBSYSTEM==&quot;dvb&quot;, ATTRS{product}==&quot;PCTV 290e&quot;, ATTRS{serial}==&quot;00000006LKWJ&quot;, SYMLINK+=&quot;dvb/adapterPCTV290e/net0&quot;</p><p>I have no idea how to do this! Any help with this would be appreciated.</p><p>9) Any other tests you would like doing?</p>]]></description>
			<author><![CDATA[dummy@example.com (chrisw)]]></author>
			<pubDate>Fri, 30 Dec 2016 23:12:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=431#p431</guid>
		</item>
	</channel>
</rss>
