[SOLVED]system fails to boot since adding udev rules for automounting

Hello
I have recently been trying to use udev rules to automount, and putting together stuff from the wiki, forums and general googling around have produced the following set of rules:
# automounts usb hdd and pendrives as usbhd-sdx; no messing around with
# volume labels or other confusing stuff
# matches all sdx devices except the internal hdd, sda
KERNEL=="sd[b-z]", NAME="%k", SYMLINK+="usbhd-%k", GROUP="users", OPTIONS="last_rule"
# imports filesystem information
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
# creates mount points and sets up symlinks
ACTION=="add", KERNEL=="sd[b-z][0-9]", SYMLINK+="usbhd-%k", GROUP="users", NAME="%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/mkdir -p /media/usbhd-%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/ln -s /media/usbhd-%k /mnt/usbhd-%k"
# global mount options
ACTION=="add", ENV{mount_options}="relatime"
# filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat)
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8"
# automount ntfs filesystem with ntfs-3g driver
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k /media/usbhd-%k", OPTIONS="last_r$
# automount all other file systems
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_TYPE}!="ntfs", RUN+="/bin/mount -t auto -o %E{mount_options} /dev/%k /media/usbhd-%k", OPTIONS="last_rule"
# unmounts and removes the mount points
ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/rm -f /mnt/usbhd-%k"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/umount -l /media/usbhd-%k"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/rmdir /media/usbhd-%k", OPTIONS="last_rule"
This seemed to be working very well unitl I tried to boot this morning and the boot process stopped at "processing UDev events" with the following message:
iTCO_wdt: Unexpected close, not stopping watchdog!
It pauses at this point for 10-15 seconds and then reboots.
Having searched a bit, I found the following similar post on the forums:  http://bbs.archlinux.org/viewtopic.php?pid=459375
Which suggests that the problem might lie with this line:
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
I have renamed the file so that it no longer has the udev .rules extension and now the system boots fine.  Does anyone have any suggestions as to why the above rules might be causing this behaviour and how I might go about fixing it?
Thanks
Last edited by useradded (2010-07-02 22:58:14)

Hey falconindy
That was the final kick up the logical a$$ that I needed to get some kind of grip on udev rules.  I now have a fully functional rule that applies only to /dev/sdxy and not to everything else as well, so no more boot trauma, THANK YOU.
I will mark this thread as solved and post my new rule for the benefit of anyone who might read this.
New rule (no boot problems):
# automounts usb hdd and pendrives as label or as usbhd-sdxy if no label present
# ensures the following is _only_ run for sdxy devices excluding internal hdd, sda
KERNEL!="sd[b-z][0-9]", GOTO="personal_usb_automount_settings_end"
# imports filesystem information
# provides access to following variables:
# ID_FS_UUID; ID_FS_UUID_ENC; ID_FS_VERSION; ID_FS_TYPE; ID_FS_VERSION; ID_FS_LABEL
# accessible via ENV{variable}; $env{variable}|%E{variable}
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise name usbhd-%k
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# creates mount points and sets up symlinks
ACTION=="add", SYMLINK+="%E{dir_name}", GROUP="users", NAME="%k"
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}"
ACTION=="add", RUN+="/bin/ln -s /media/%E{dir_name} /mnt/%E{dir_name}"
# global mount options
ACTION=="add", ENV{mount_options}="relatime"
# filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat)
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8"
# automount ntfs filesystem with ntfs-3g driver
ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k /media/%E{dir_name}", OPTIONS="last_rule"
# automount all other file systems
ACTION=="add",ENV{ID_FS_TYPE}!="ntfs", RUN+="/bin/mount -t auto -o %E{mount_options} /dev/%k /media/%E{dir_name}", OPTIONS="last_rule"
# unmounts and removes the mount points
ACTION=="remove", RUN+="/bin/rm -f /mnt/%E{dir_name}"
ACTION=="remove", RUN+="/bin/umount -l /media/%E{dir_name}"
ACTION=="remove", RUN+="/bin/rmdir /media/%E{dir_name}", OPTIONS="last_rule"
# exit
LABEL=="personal_usb_automount_settings_end"
Last edited by useradded (2010-07-02 22:59:20)

Similar Messages

  • [SOLVED] System fails to boot after upgrade.

    Not exactly sure what happened as the upgrade appeared to go smoothly. Now trying to start just causes an endless cycle of rebooting. I have been unable to even boot into single user mode. Any suggestions are greatly appreciated here.
    Using the livecd I can mount all the filesystems, and I have run fsck on all of them so I know they are clean. Here are my grub entries:
    # (0) Arch Linux
    title Arch Linux
    root (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/569a7fe5-7452-4064-adc1-71b6b2b58b0b resume=/dev/sda7 ro vga=773 elevator=deadline
    initrd /boot/kernel26.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/569a7fe5-7452-4064-adc1-71b6b2b58b0b ro vga=773
    initrd /boot/kernel26-fallback.img
    I have tried using a kernel line of just:
    kernel /boot/vmlinuz26 root=/dev/sda2 ro
    and get the same results, as soon as grub starts to load the kernel the system reboots and I can't see what's on screen long enough to know what's happening.
    pacman.log:
    [2009-07-19 16:02] synchronizing package lists
    [2009-07-19 16:02] starting full system upgrade
    [2009-07-20 14:52] synchronizing package lists
    [2009-07-20 14:52] starting full system upgrade
    [2009-07-20 14:54] starting full system upgrade
    [2009-07-20 15:44] upgraded kernel-headers (2.6.29.3-1 -> 2.6.30.1-1)
    [2009-07-20 15:44] Generating locales...
    [2009-07-20 15:44] en_US.UTF-8... done
    [2009-07-20 15:44] en_US.ISO-8859-1... done
    [2009-07-20 15:44] Generation complete.
    [2009-07-20 15:44] upgraded glibc (2.10.1-2 -> 2.10.1-3)
    [2009-07-20 15:44] upgraded readline (5.2.013-2 -> 6.0.003-1)
    [2009-07-20 15:44] upgraded abook (0.6.0pre2-1 -> 0.6.0pre2-2)
    [2009-07-20 15:44] upgraded gcc-libs (4.4.0-3 -> 4.4.0-5)
    [2009-07-20 15:44] upgraded libgcrypt (1.4.4-1 -> 1.4.4-2)
    [2009-07-20 15:44] upgraded gnutls (2.8.0-1 -> 2.8.1-1)
    [2009-07-20 15:44] upgraded bash (3.2.048-3 -> 4.0.024-1)
    [2009-07-20 15:44] upgraded e2fsprogs (1.41.6-1 -> 1.41.8-1)
    [2009-07-20 15:44] upgraded perl (5.10.0-4 -> 5.10.0-6)
    [2009-07-20 15:44] warning: /etc/ssl/openssl.cnf installed as /etc/ssl/openssl.cnf.pacnew
    [2009-07-20 15:44] upgraded openssl (0.9.8k-2 -> 0.9.8k-4)
    [2009-07-20 15:44] upgraded sqlite3 (3.6.15-1 -> 3.6.15-2)
    [2009-07-20 15:44] upgraded heimdal (1.2.1-3 -> 1.2.1-5)
    [2009-07-20 15:44] upgraded libpng (1.2.37-1 -> 1.2.38-1)
    [2009-07-20 15:44] upgraded libjpeg (6b-6 -> 7-1)
    [2009-07-20 15:44] upgraded libtiff (3.8.2-4 -> 3.8.2-5)
    [2009-07-20 15:44] upgraded libcups (1.3.10-2 -> 1.3.11-1)
    [2009-07-20 15:44] upgraded cairo (1.8.6-1 -> 1.8.8-1)
    [2009-07-20 15:44] upgraded libthai (0.1.11-1 -> 0.1.12-1)
    [2009-07-20 15:44] upgraded pango (1.24.2-1 -> 1.24.4-2)
    [2009-07-20 15:44] upgraded gtk2 (2.16.2-1 -> 2.16.5-1)
    [2009-07-20 15:44] upgraded aiksaurus (1.2.1-1 -> 1.2.1-2)
    [2009-07-20 15:45] upgraded python (2.6.2-2 -> 2.6.2-5)
    [2009-07-20 15:45] upgraded boost (1.37.0-1 -> 1.39.0-1)
    [2009-07-20 15:45] upgraded libmysqlclient (5.1.35-2 -> 5.1.36-1)
    [2009-07-20 15:45] upgraded mysql-clients (5.1.35-1 -> 5.1.36-1)
    [2009-07-20 15:45] upgraded mysql (5.1.35-1 -> 5.1.36-1)
    [2009-07-20 15:45] upgraded libmng (1.0.10-1 -> 1.0.10-2)
    [2009-07-20 15:45] upgraded dri2proto (2.0-1 -> 2.1-1)
    [2009-07-20 15:45] upgraded libdrm (2.4.11-2 -> 2.4.12-1)
    [2009-07-20 15:45] upgraded libxt (1.0.5-2 -> 1.0.6-1)
    [2009-07-20 15:45] upgraded mesa (7.4.4-1 -> 7.5-1)
    [2009-07-20 15:45]
    [2009-07-20 15:45] > Qt 4.5.1
    [2009-07-20 15:45]
    [2009-07-20 15:45] Prefix: /usr
    [2009-07-20 15:45]
    [2009-07-20 15:45] > ATTENTION
    [2009-07-20 15:45] Some components are split into separate packages:
    [2009-07-20 15:45]
    [2009-07-20 15:45] qtmod : Base libraries and tools
    [2009-07-20 15:45] qtmod-doc : Documentation
    [2009-07-20 15:45] qtmod-demos : Demos & Examples
    [2009-07-20 15:45] qtmod-tools : Development Tools (Assistant, Designer, Linguist)
    [2009-07-20 15:45]
    [2009-07-20 15:45] upgraded qtmod (4.5.1-2 -> 4.5.1-4)
    [2009-07-20 15:45] upgraded akonadi (1.1.2-1 -> 1.1.2-2)
    [2009-07-20 15:45] upgraded apr (1.3.3-1 -> 1.3.5-1)
    [2009-07-20 15:45] upgraded unixodbc (2.2.14-1 -> 2.2.14-2)
    [2009-07-20 15:45] upgraded apr-util (1.3.4-1 -> 1.3.7-1)
    [2009-07-20 15:45] upgraded apvlv (0.0.6.5-1 -> 0.0.6.7-1)
    [2009-07-20 15:45] upgraded libsndfile (1.0.20-2 -> 1.0.20-3)
    [2009-07-20 15:45] upgraded jack-audio-connection-kit (0.116.2-1 -> 0.116.2-2)
    [2009-07-20 15:45] upgraded wxgtk (2.8.10.1-1 -> 2.8.10.1-4)
    [2009-07-20 15:45] upgraded audacity (1.3.7-1 -> 1.3.8-1)
    [2009-07-20 15:45] upgraded avifile (0.7.45-3 -> 0.7.45-4)
    [2009-07-20 15:45] upgraded imlib2 (1.4.2-2 -> 1.4.2-3)
    [2009-07-20 15:45] upgraded libxdg-basedir (1.0.0-2 -> 1.0.1-1)
    [2009-07-20 15:45] upgraded lua (5.1.4-3 -> 5.1.4-4)
    [2009-07-20 15:45]
    [2009-07-20 15:45] ==> awesome installation notes:
    [2009-07-20 15:45] ----------------------------------------
    [2009-07-20 15:45] During some updates of awesome, the config file syntax changes heavily.
    [2009-07-20 15:45] This means that your configuration file (~/.config/awesome/rc.lua) for
    [2009-07-20 15:45] any other than this particular version of awesome may or may not work.
    [2009-07-20 15:45]
    [2009-07-20 15:45] upgraded awesome (3.3-2 -> 3.3.1-1)
    [2009-07-20 15:45] upgraded bc (1.06-5 -> 1.06-6)
    [2009-07-20 15:45] upgraded binutils (2.19.1-4 -> 2.19.1-5)
    [2009-07-20 15:45] upgraded gstreamer0.10-base-plugins (0.10.23-1 -> 0.10.23-2)
    [2009-07-20 15:45] upgraded brasero (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:45] upgraded run-parts (2.31-1 -> 3.1.3-1)
    [2009-07-20 15:45] upgraded sed (4.2-1 -> 4.2.1-1)
    [2009-07-20 15:45] Updating certificates in /etc/ssl/certs... 4 added, 0 removed; done.
    [2009-07-20 15:45] Running hooks in /etc/ca-certificates/update.d....done.
    [2009-07-20 15:45] upgraded ca-certificates (20080809-5 -> 20090709-1)
    [2009-07-20 15:45] upgraded cairomm (1.8.0-1 -> 1.8.2-1)
    [2009-07-20 15:45] upgraded calcurse (2.5-1 -> 2.6-1)
    [2009-07-20 15:45] upgraded mjpegtools (1.9.0-1 -> 1.9.0-2)
    [2009-07-20 15:45] upgraded cinelerra-cv (20090519-1 -> 20090715-1)
    [2009-07-20 15:45] upgraded ctags (5.7-1 -> 5.8-1)
    [2009-07-20 15:45] upgraded lcms (1.18-1 -> 1.18-2)
    [2009-07-20 15:45]
    [2009-07-20 15:45] NOTE for drcaw:
    [2009-07-20 15:45] ----
    [2009-07-20 15:45] ==> dcraw provides the simple commandline tools for raw conversion. If you
    [2009-07-20 15:45] ==> are looking for a more sophisticated way consider gimp-ufraw, which
    [2009-07-20 15:45] ==> provides a gimp-plugin and a standalone application that can even convert
    [2009-07-20 15:45] ==> to 16-bit tiff files (which you can use in cinepaint eg.) So please do a
    [2009-07-20 15:45] ==> 'pacman -S gimp-ufraw' to get it.
    [2009-07-20 15:45]
    [2009-07-20 15:45] upgraded dcraw (1.410-1 -> 1.425-1)
    [2009-07-20 15:45] upgraded libtorrent-rasterbar (0.14.2-1 -> 0.14.4-2)
    [2009-07-20 15:45]
    [2009-07-20 15:45] >>> Deluge's daemon is running with the "deluge" user. The default download directory is /srv/deluge/
    [2009-07-20 15:45]
    [2009-07-20 15:45] upgraded deluge (1.1.9-1 -> 1.1.9-2)
    [2009-07-20 15:45] upgraded device-mapper (1.02.32-1 -> 1.02.33-1)
    [2009-07-20 15:45] upgraded jasper (1.900.1-2 -> 1.900.1-3)
    [2009-07-20 15:45] upgraded devil (1.7.8-1 -> 1.7.8-2)
    [2009-07-20 15:45] upgraded dhcpcd (5.0.4-1 -> 5.0.6-1)
    [2009-07-20 15:45] > Rebuilding MIME database ... DONE
    [2009-07-20 15:45] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:45] upgraded kdemod-kdelibs (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:45] upgraded libtool (2.2.6a-1 -> 2.2.6a-2)
    [2009-07-20 15:46] NOTE
    [2009-07-20 15:46] ----
    [2009-07-20 15:46] Add your user to group 'camera' to use camera devices.
    [2009-07-20 15:46] upgraded libgphoto2 (2.4.6-1 -> 2.4.6-2)
    [2009-07-20 15:46] NOTE
    [2009-07-20 15:46] ----
    [2009-07-20 15:46] Add your user to group 'scanner' to use scanner devices.
    [2009-07-20 15:46] upgraded sane (1.0.20-2 -> 1.0.20-3)
    [2009-07-20 15:46] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:46] upgraded kdemod-kdegraphics-common (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:46] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:46] upgraded kdemod-kdepimlibs (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:46] upgraded digikam (0.10.0-2 -> 0.10.0-3)
    [2009-07-20 15:46] upgraded directfb (1.2.8-1 -> 1.4.1-1)
    [2009-07-20 15:46] upgraded ghostscript (8.64-5 -> 8.64-6)
    [2009-07-20 15:46] upgraded libwmf (0.2.8.4-4 -> 0.2.8.4-5)
    [2009-07-20 15:46] upgraded libxml2 (2.7.3-1.1 -> 2.7.3-2)
    [2009-07-20 15:46] upgraded imagemagick (6.5.3.2-1 -> 6.5.3.10-1)
    [2009-07-20 15:46] upgraded dvdauthor (0.6.14-4 -> 0.6.14-5)
    [2009-07-20 15:46] -- Edit config.h in PKGBUILD's directory (generally /var/abs/community/x11/dwm/)
    [2009-07-20 15:46] -- and rebuild package if you want to change settings.
    [2009-07-20 15:46] upgraded dwm (5.5-1 -> 5.6-1)
    [2009-07-20 15:46] upgraded smbclient (3.3.6-1 -> 3.3.6-2)
    [2009-07-20 15:46] upgraded mplayer (29318-1.1 -> 29411-3)
    [2009-07-20 15:46] installed flam3 (2.7.18-3)
    [2009-07-20 15:46] upgraded electricsheep (2.6.8-4 -> 2.7b12-1)
    [2009-07-20 15:46] upgraded enblend-enfuse (3.2-2 -> 3.2-3)
    [2009-07-20 15:46] upgraded gnome-keyring (2.26.1-1 -> 2.26.3-1)
    [2009-07-20 15:46] upgraded libsoup (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:46] upgraded libgweather (2.26.1-2 -> 2.26.2.1-1)
    [2009-07-20 15:46] upgraded evolution-data-server (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:46] upgraded gtkhtml (3.26.2-1 -> 3.26.3-1)
    [2009-07-20 15:46] upgraded evolution (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:46] upgraded evolution-exchange (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:46] upgraded feh (1.3.4-4 -> 1.3.4-5)
    [2009-07-20 15:46] upgraded ffmpegthumbnailer (1.5.0-1 -> 1.5.4-2)
    [2009-07-20 15:46] upgraded filezilla (3.2.4.1-1 -> 3.2.6.1-1)
    [2009-07-20 15:46] upgraded fltk (1.1.9-1 -> 1.1.9-2)
    [2009-07-20 15:46] upgraded fluidsynth (1.0.8-1 -> 1.0.9-1)
    [2009-07-20 15:46] upgraded fox (1.6.35-1 -> 1.6.36-1)
    [2009-07-20 15:47] upgraded freeciv (2.1.9-1 -> 2.1.9-2)
    [2009-07-20 15:47] upgraded gcc (4.4.0-3 -> 4.4.0-5)
    [2009-07-20 15:47] upgraded gd (2.0.35-1 -> 2.0.35-2)
    [2009-07-20 15:47] upgraded gedit (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:47] upgraded gegl (0.0.22-1 -> 0.0.22-2)
    [2009-07-20 15:47] upgraded gimp (2.6.6-1 -> 2.6.6-2)
    [2009-07-20 15:47] upgraded gimp-ufraw (0.15-2 -> 0.15-4)
    [2009-07-20 15:47] upgraded glade (3.6.5-2 -> 3.6.7-1)
    [2009-07-20 15:47] upgraded glib-perl (1.221-1 -> 1.222-1)
    [2009-07-20 15:47] upgraded glibmm (2.20.0-1 -> 2.20.1-1)
    [2009-07-20 15:47] upgraded gmerlin (0.4.0-4 -> 0.4.0-5)
    [2009-07-20 15:47] upgraded gnome-desktop (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:47] upgraded gnome-menus (2.26.1-1 -> 2.26.2-1)
    [2009-07-20 15:47] upgraded libwnck (2.26.1-1 -> 2.26.2-1)
    [2009-07-20 15:47] upgraded gnome-panel (2.26.2-1 -> 2.26.3-1)
    [2009-07-20 15:48] upgraded gnome-themes (2.26.2-1 -> 2.26.3.1-1)
    [2009-07-20 15:48] upgraded gnupg (1.4.9-1 -> 1.4.9-4)
    [2009-07-20 15:48] upgraded gnupg2 (2.0.11-1 -> 2.0.12-1)
    [2009-07-20 15:48] upgraded libxaw (1.0.5-1 -> 1.0.6-1)
    [2009-07-20 15:48] upgraded graphviz (2.22.2-1.1 -> 2.22.2-2)
    [2009-07-20 15:48] upgraded grep (2.5.4-2 -> 2.5.4-3)
    [2009-07-20 15:48] upgraded gstreamer0.10-good-plugins (0.10.15-1 -> 0.10.15-2)
    [2009-07-20 15:48] upgraded gtk-recordmydesktop (0.3.8-1 -> 0.3.8-2)
    [2009-07-20 15:48] upgraded gtk2-perl (1.220-1 -> 1.221-1)
    [2009-07-20 15:48] upgraded guile (1.8.6-1 -> 1.8.7-1)
    [2009-07-20 15:48] >>please run /usr/sbin/cups-genppdupdate
    [2009-07-20 15:48] >>and restart cups deamon
    [2009-07-20 15:48] upgraded gutenprint (5.2.3-1 -> 5.2.3-3)
    [2009-07-20 15:48]
    [2009-07-20 15:48] NOTE
    [2009-07-20 15:48] ----
    [2009-07-20 15:48] # If you want to use this driver with sane:
    [2009-07-20 15:48] # echo "hpaio" >> /etc/sane.d/dll.conf
    [2009-07-20 15:48]
    [2009-07-20 15:48]
    [2009-07-20 15:48] UPGRADING
    [2009-07-20 15:48] ----
    [2009-07-20 15:48] # This version no longer uses an init script. You should remove hplip
    [2009-07-20 15:48] # from the /etc/rc.conf daemon list.
    [2009-07-20 15:48]
    [2009-07-20 15:48] upgraded hplip (3.9.4b-1 -> 3.9.4b-2)
    [2009-07-20 15:48] upgraded htmldoc (1.8.27-1 -> 1.8.27-2)
    [2009-07-20 15:48] upgraded libpano13 (2.9.12-1 -> 2.9.12-2)
    [2009-07-20 15:48] upgraded hugin (0.7.0-4 -> 0.7.0-5)
    [2009-07-20 15:48] upgraded hwdetect (2009.06-1 -> 2009.07-1)
    [2009-07-20 15:48] upgraded icu (4.2-1 -> 4.2.1-1)
    [2009-07-20 15:48] upgraded imlib (1.9.15-5 -> 1.9.15-6)
    [2009-07-20 15:48] upgraded inkscape (0.46-11 -> 0.46-12)
    [2009-07-20 15:48] upgraded iptables (1.4.3.2-1 -> 1.4.4-1)
    [2009-07-20 15:48] upgraded iw (0.9.14-1 -> 0.9.15-1)
    [2009-07-20 15:48] upgraded iwlwifi-4965-ucode (228.57.2.23-1 -> 228.61.2.24-1)
    [2009-07-20 15:48] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:48] upgraded kdemod-kdebase-runtime (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:48] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:48] upgraded kdemod-kdebase (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] upgraded kdemod-kdebase-doc (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdebase-konsole (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdebase-kwrite (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] upgraded kdemod-kdebase-runtime-doc (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdebase-runtime-icons (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdebase-workspace (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] upgraded kdemod-kdebase-workspace-doc (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] upgraded kdemod-kdebase-workspace-wallpapers (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-doc (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-gwenview (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-kamera (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-kcolorchooser (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-kolourpaint (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-kruler (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-ksnapshot (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] upgraded libdjvu (3.5.22-1 -> 3.5.22-2)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdegraphics-okular (4.2.4-1 -> 4.2.4-3)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-common (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-doc (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-kget (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-kopete (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:49] upgraded ppp (2.4.4-8 -> 2.4.4-9)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-kppp (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:49] upgraded libvncserver (0.9.7-1 -> 0.9.7-2)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-krdc (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:49] > Rebuilding xdg icon database ... DONE
    [2009-07-20 15:49] upgraded kdemod-kdenetwork-krfb (4.2.4-1 -> 4.2.4-2)
    [2009-07-20 15:50] >>> Updating module dependencies. Please wait ...
    [2009-07-20 15:50] >>> MKINITCPIO SETUP
    [2009-07-20 15:50] >>> ----------------
    [2009-07-20 15:50] >>> If you use LVM2, Encrypted root or software RAID,
    [2009-07-20 15:50] >>> Ensure you enable support in /etc/mkinitcpio.conf .
    [2009-07-20 15:50] >>> More information about mkinitcpio setup can be found here:
    [2009-07-20 15:50] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
    [2009-07-20 15:50]
    [2009-07-20 15:50] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2009-07-20 15:50] ==> Building image "default"
    [2009-07-20 15:50] ==> Running command: /sbin/mkinitcpio -k 2.6.30-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
    [2009-07-20 15:50] :: Begin build
    [2009-07-20 15:50] :: Parsing hook [base]
    [2009-07-20 15:50] :: Parsing hook [udev]
    [2009-07-20 15:50] :: Parsing hook [autodetect]
    [2009-07-20 15:51] :: Parsing hook [pata]
    [2009-07-20 15:51] :: Parsing hook [scsi]
    [2009-07-20 15:51] :: Parsing hook [sata]
    [2009-07-20 15:51] :: Parsing hook [filesystems]
    [2009-07-20 15:51] :: Generating module dependencies
    [2009-07-20 15:51] :: Generating image '/boot/kernel26.img'...SUCCESS
    [2009-07-20 15:51] ==> SUCCESS
    [2009-07-20 15:51] ==> Building image "fallback"
    [2009-07-20 15:51] ==> Running command: /sbin/mkinitcpio -k 2.6.30-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
    [2009-07-20 15:51] :: Begin build
    [2009-07-20 15:51] :: Parsing hook [base]
    [2009-07-20 15:51] :: Parsing hook [udev]
    [2009-07-20 15:51] :: Parsing hook [pata]
    [2009-07-20 15:51] :: Parsing hook [scsi]
    [2009-07-20 15:51] :: Parsing hook [sata]
    [2009-07-20 15:51] :: Parsing hook [filesystems]
    [2009-07-20 15:51] :: Generating module dependencies
    [2009-07-20 15:51] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
    [2009-07-20 15:51] ==> SUCCESS
    [2009-07-20 15:51] upgraded kernel26 (2.6.30-5 -> 2.6.30.1-1)
    [2009-07-20 15:51] upgraded kismet (2008_05_R1-4 -> 2008_05_R1-5)
    [2009-07-20 15:51] upgraded lib32-cairo (1.8.6-1 -> 1.8.8-1)
    [2009-07-20 15:51] upgraded lib32-glibc (2.10.1-2 -> 2.10.1-3)
    [2009-07-20 15:51] upgraded lib32-e2fsprogs (1.41.6-1 -> 1.41.8-1)
    [2009-07-20 15:51] upgraded lib32-gcc-libs (4.4.0-3 -> 4.4.0-5)
    [2009-07-20 15:51] upgraded lib32-glib2 (2.20.3-1 -> 2.20.4-1)
    [2009-07-20 15:51] upgraded lib32-readline (5.2.013-2 -> 6.0.003-1)
    [2009-07-20 15:51] upgraded lib32-gnutls (2.8.0-1 -> 2.8.1-1)
    [2009-07-20 15:51] upgraded lib32-openssl (0.9.8k-2 -> 0.9.8k-4)
    [2009-07-20 15:51] upgraded lib32-heimdal (1.2.1-3 -> 1.2.1-5)
    [2009-07-20 15:51] upgraded lib32-libjpeg (6b-6 -> 7-1)
    [2009-07-20 15:51] upgraded lib32-libtiff (3.8.2-4 -> 3.8.2-5)
    [2009-07-20 15:51] upgraded lib32-libcups (1.3.10-2 -> 1.3.11-1)
    [2009-07-20 15:51] upgraded lib32-pango (1.24.2-1 -> 1.24.4-2)
    [2009-07-20 15:51] upgraded lib32-gtk2 (2.16.2-1 -> 2.16.5-1)
    [2009-07-20 15:51] upgraded lib32-libdrm (2.4.11-2 -> 2.4.12-1)
    [2009-07-20 15:51] upgraded lib32-libgcrypt (1.4.4-1 -> 1.4.4-2)
    [2009-07-20 15:51] upgraded lib32-libgl (7.4.2-2 -> 7.4.4-1)
    [2009-07-20 15:51] upgraded lib32-libxml2 (2.7.3-1 -> 2.7.3-2)
    [2009-07-20 15:51] upgraded lib32-libxt (1.0.5-2 -> 1.0.6-1)
    [2009-07-20 15:51] upgraded lib32-mesa (7.4.2-1 -> 7.4.4-1)
    [2009-07-20 15:51] upgraded lib32-sqlite3 (3.6.15-1 -> 3.6.15-2)
    [2009-07-20 15:51] upgraded libcanberra (0.12-1 -> 0.14-1)
    [2009-07-20 15:51] upgraded libevent (1.4.10-1 -> 1.4.11-1)
    [2009-07-20 15:51] upgraded libgdiplus (2.4-1 -> 2.4.2-1)
    [2009-07-20 15:51] upgraded libquicktime (1.1.1-3 -> 1.1.1-4)
    [2009-07-20 15:52] upgraded libwebkit (1.1.10-1 -> 1.1.10-2)
    [2009-07-20 15:52] upgraded links-g (2.2-1 -> 2.2-2)
    [2009-07-20 15:52] upgraded lvm2 (2.02.47-1 -> 2.02.48-1)
    [2009-07-20 15:52] upgraded mercurial (1.2.1-1 -> 1.3-3)
    [2009-07-20 15:52] upgraded mtools (4.0.10-2 -> 4.0.10-3)
    [2009-07-20 15:52] upgraded mutagen (1.15-1 -> 1.16-1)
    [2009-07-20 15:52] upgraded namcap (2.2-2 -> 2.3-1)
    [2009-07-20 15:52] upgraded nautilus-cd-burner (2.24.0-1 -> 2.24.0-2)
    [2009-07-20 15:52] upgraded ncmpcpp (0.3.4-1 -> 0.3.5-1)
    [2009-07-20 15:52] upgraded wpa_supplicant (0.6.9-1 -> 0.6.9-2)
    [2009-07-20 15:52] upgraded netcfg (2.1.3-3 -> 2.2.1-1)
    [2009-07-20 15:52] upgraded neverball (1.5.1-1 -> 1.5.1-2)
    [2009-07-20 15:52] upgraded nmap (4.76-4 -> 5.00-1)
    [2009-07-20 15:52] upgraded openmovieeditor (0.0.20090105-3 -> 0.0.20090105-4)
    [2009-07-20 15:52] * relogin or source /etc/profile.d/openoffice.sh
    [2009-07-20 15:52] * see http://wiki.archlinux.org/index.php/Openoffice
    [2009-07-20 15:52] how to use extensions, e.g. for spell checking
    [2009-07-20 15:52] see /opt/openoffice/share/extension/install what
    [2009-07-20 15:52] is shipped with this package
    [2009-07-20 15:52] upgraded openoffice-base (3.1.0-2 -> 3.1.0-5)
    [2009-07-20 15:52] upgraded parted (1.8.8-2 -> 1.8.8-3)
    [2009-07-20 15:52] upgraded pcmanfm (0.5.1-1 -> 0.5.1-2)
    [2009-07-20 15:52] upgraded perl-html-parser (3.60-1 -> 3.61-1)
    [2009-07-20 15:52] upgraded perl-uri (1.37-1 -> 1.38-1)
    [2009-07-20 15:52] upgraded perl-libwww (5.825-1 -> 5.829-1)
    [2009-07-20 15:52] upgraded postgresql-libs (8.3.7-1 -> 8.3.7-2)
    [2009-07-20 15:52] upgraded pgadmin3 (1.10.0beta3-1 -> 1.10.0-1)
    [2009-07-20 15:52] upgraded pil (1.1.6-5 -> 1.1.6-6)
    [2009-07-20 15:52] upgraded pilot-link (0.12.3-4 -> 0.12.3-5)
    [2009-07-20 15:52] upgraded poppler (0.10.7-1 -> 0.10.7-2)
    [2009-07-20 15:52] upgraded postgresql (8.3.7-2 -> 8.3.7-3)
    [2009-07-20 15:52] upgraded pycairo (1.8.4-1 -> 1.8.6-1)
    [2009-07-20 15:52] upgraded qingy (0.9.9-1 -> 0.9.9-2)
    [2009-07-20 15:52] upgraded qt3 (3.3.8-11 -> 3.3.8-12)
    [2009-07-20 15:52] upgraded ruby (1.8.7_p173-1 -> 1.8.7_p174-1)
    [2009-07-20 15:52] upgraded ruby-libart (0.18.1-1 -> 0.19.0-2)
    [2009-07-20 15:52] upgraded samba (3.3.6-1 -> 3.3.6-2)
    [2009-07-20 15:52] upgraded sdl_image (1.2.7-1 -> 1.2.7-2)
    [2009-07-20 15:52] upgraded sauerbraten (2008_06_20_ctf_edition-1 -> 2009_05_04_trooper_edition-1)
    [2009-07-20 15:52] upgraded sdl_perl (2.1.3-4 -> 2.1.3-5)
    [2009-07-20 15:52] Fixing gshadow file ...
    [2009-07-20 15:52] upgraded shadow (4.1.3.1-1 -> 4.1.4.1-1)
    [2009-07-20 15:52] upgraded silly (0.1.0-2 -> 0.1.0-3)
    [2009-07-20 15:52] upgraded smc (1.8-1 -> 1.8-2)
    [2009-07-20 15:52] upgraded source-highlight (3.1-1 -> 3.1-2)
    [2009-07-20 15:52] warning: extracting /etc/sudoers as /etc/sudoers.pacnew
    [2009-07-20 15:52] upgraded sudo (1.7.1-2 -> 1.7.2-1)
    [2009-07-20 15:52] upgraded sunbird (0.9-1 -> 0.9-2)
    [2009-07-20 15:52] upgraded swftools (0.9.0-1 -> 0.9.0-2)
    [2009-07-20 15:52] upgraded syslog-ng (3.0.1-6 -> 3.0.3-1)
    [2009-07-20 15:52] upgraded texlive-bin (2008-4 -> 2008-5)
    [2009-07-20 15:52] upgraded tftp-hpa (5.0-2 -> 5.0-3)
    [2009-07-20 15:52] upgraded thunar (1.0.1-1 -> 1.0.1-4)
    [2009-07-20 15:53] upgraded thunderbird (2.0.0.21-1 -> 2.0.0.22-1)
    [2009-07-20 15:53] upgraded tightvnc (1.3.10-1 -> 1.3.10-2)
    [2009-07-20 15:53] upgraded transcode (1.1.0-5 -> 1.1.3-1)
    [2009-07-20 15:53] upgraded transmission-gtk (1.60-1 -> 1.72-1)
    [2009-07-20 15:53] upgraded usbutils (0.82-1 -> 0.84-1)
    [2009-07-20 15:53] installed libmtp (0.3.7-1)
    [2009-07-20 15:53] installed enca (1.9-4)
    [2009-07-20 15:53] installed libass (0.9.6-2)
    [2009-07-20 15:53] upgraded vlc (0.9.9a-5 -> 1.0.0-5)
    [2009-07-20 15:53] upgraded xfce4-clipman-plugin (1.0.1-1 -> 1.0.2-1)
    [2009-07-20 15:53] upgraded xfce4-power-manager (0.8.0-1 -> 0.8.2-1)
    [2009-07-20 15:53] upgraded xine-ui (0.99.5-4 -> 0.99.5-5)
    [2009-07-20 15:53] upgraded xmlrpc-c (1.06.33-1 -> 1.06.35-1)
    [2009-07-20 15:53] upgraded xorg-server (1.6.1.901-3 -> 1.6.2-1)
    [2009-07-20 15:53] upgraded xz-utils (4.999.8beta-3 -> 4.999.8beta-4)
    [2009-07-20 16:08] upgraded codecs (20071007-4 -> 20071007-6)
    [2009-07-20 16:09] upgraded muttprint (0.72d-8 -> 0.72d-9)
    [2009-07-20 16:11] upgraded openvpn-dev (2.1_rc15-2 -> 2.1_rc18-2)
    [2009-07-20 16:11] upgraded perl-xyne-arch (0.66-1 -> 0.68-2)
    [2009-07-20 16:11] installed rpmextract (1.0-3)
    [2009-07-20 16:14] Before using picasa you must accept the license.
    [2009-07-20 16:14] The license files are located in /usr/share/licences/picasa/
    [2009-07-20 16:14]
    [2009-07-20 16:14] NOTE:
    [2009-07-20 16:14] If you're not running gnome/kde please look at the hook files
    [2009-07-20 16:14] located in /opt/picasa/info.
    [2009-07-20 16:14] Edit them for your default filemanager/browser/email/mime-handling,
    [2009-07-20 16:14] and copy them to /opt/picasa/bin.
    [2009-07-20 16:14] If you're a gnome/kde user you should not modify these files.
    [2009-07-20 16:14] Picasa will use your default DE settings.
    [2009-07-20 16:14]
    [2009-07-20 16:14] upgraded picasa-beta (3.0_5744.02-1 -> 3.0_5744.02-3)
    [2009-07-20 16:14] upgraded powerpill (16.0-11 -> 16.0-12)
    [2009-07-20 16:24] synchronizing package lists
    [2009-07-20 16:24] starting full system upgrade
    [2009-07-20 16:25] upgraded lib32-libgl (7.4.4-1 -> 7.5-1)
    [2009-07-20 16:25] upgraded lib32-libpng (1.2.37-1 -> 1.2.38-1)
    [2009-07-20 16:25] upgraded lib32-mesa (7.4.4-1 -> 7.5-1)
    [2009-07-20 16:25] synchronizing package lists
    [2009-07-20 16:25] starting full system upgrade
    [2009-07-20 16:28] update desktop mime database... done
    [2009-07-20 16:28] update desktop applications database... done
    [2009-07-20 16:28] upgraded xaralx (0.7r1785-3 -> 0.7r1785-5)
    any suggestions on how to get more info?
    thanks
    Last edited by webframp (2009-07-21 18:32:58)

    That does appear to be my issue, I use jfs with no separate /boot
    Edit:
    The following steps fixed it:
    Mount your / (and /boot partition into this mount) from your Ach system, ex:
    sda2 (/) -> /mnt/arch
    sda1 (/boot)(if you have a own /boot) -> /mnt/arch/boot
    Do a chroot /mnt
    and therein a:
    pacman -U /var/cache/pacman/pkg/kernel26-2.6.30.1-1-x86_64.pkg.tar.gz (or i686)
    further details at the link above.
    Last edited by webframp (2009-07-21 18:32:14)

  • UDEV rules for Xilinx FPGA devices

    I recently purchased a Digilent Nexys3 FPGA board with a Xilinx Spartan 5 FPGA on it. I finally got around to finding some time to using it, and setting up the development environment under Arch linux.
    After spending ages reading around about various problems and workarounds, I finally managed to get Xilinx ISE Webpack installed and working, as well as Digilent Adept software for downloading the designs to the development board. One issue still remains though. I am unable to download the designs to the FPGA as a normal user, but only as root.
    I'm pretty sure this is a udev rules problem. Digilent supplies a rules file (attached below) which is supposed to grant permissions to all users to access the FPGA devices over USB. I placed this rule file under /etc/udev/rules.d, but I am still unable to access the devices as normal user due to the following error:
    $ djtgcfg enum
    libusb couldn't open USB device /dev/bus/usb/001/003: Permission Denied.
    libusb requires write access to USB device nodes.
    $
    I believe that udev rules syntax changed since the last time I had a look at it, so maybe the supplied rules file still uses the old syntax? Any suggestions to fixing this rules file (attached below)?
    # 52-digilent-usb.rules -- UDEV rules for Digilent USB Devices #
    # Author: MTA #
    # Copyright 2010 Digilent Inc. #
    # File Description: #
    # This file contains the rules used by UDEV when creating entries for #
    # Digilent USB devices. In order for Digilent's shared libraries and #
    # applications to access these devices without root privalages it is #
    # necessary for UDEV to create entries for which all users have read #
    # and write permission. #
    # Usage: #
    # Copy this file to "/etc/udev/rules.d/" and execute #
    # "/sbin/udevcontrol reload_rules" as root. This only needs to be done #
    # immediately after installation. Each time you reboot your system the #
    # rules are automatically loaded by UDEV. #
    # Revision History: #
    # 04/15/2010(MTA): created #
    # 02/28/2011(MTA): modified to support FTDI based devices #
    # Create "/dev" entries for Digilent device's with read and write
    # permission granted to all users.
    SYSFS{idVendor}=="1443", MODE="666"
    ACTION=="add", SYSFS{idVendor}=="0403", SYSFS{manufacturer}=="Digilent", MODE="666", RUN+="/usr/local/sbin/dftdrvdtch %s{busnum} %s{devnum}"
    # The following rules (if present) cause UDEV to ignore all UEVENTS for
    # which the subsystem is "usb_endpoint" and the action is "add" or
    # "remove". These rules are necessary to work around what appears to be a
    # bug in the Kernel used by Red Hat Enterprise Linux 5/CentOS 5. The Kernel
    # sends UEVENTS to remove and then add entries for the endpoints of a USB
    # device in "/dev" each time a process releases an interface. This occurs
    # each time a data transaction occurs. When an FPGA is configured or flash
    # device is written a large number of transactions take place. If the
    # following lines are commented out then UDEV will be overloaded for a long
    # period of time while it tries to process the massive number of UEVENTS it
    # receives from the kernel. Please note that this work around only applies
    # to systems running RHEL5 or CentOS 5 and as a result the rules will only
    # be present on those systems.
    Thanks!
    -Igor
    Last edited by UQ-igor (2011-12-24 03:56:10)

    Try this
    Use ATTR or ATTRS.
    -SYSFS{idVendor}=="1443", MODE="666"
    -ACTION=="add", SYSFS{idVendor}=="0403", SYSFS{manufacturer}=="Digilent", MODE="666", RUN+="/usr/sbin/dftdrvdtch %s{busnum} %s{devnum}"
    +ATTRS{idVendor}=="1443", MODE="666"
    +ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{manufacturer}=="Digilent", MODE="666", RUN+="/usr/sbin/dftdrvdtch %s{busnum} %s{devnum}"
    +ATTR{idVendor}=="1443", MODE="666"
    +ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Digilent", MODE="666", RUN+="/usr/sbin/dftdrvdtch %s{busnum} %s{devnum}"

  • [SOLVED] System hangs on boot, reinstalling Arch doesn't help

    After a recent upgrade (including the kernel), my system hangs on boot.  I have an Asus K40IN laptop, about 2 years old.  I've been running Arch for the life of the computer and never had any (serious) problems.
    I booted into a live Arch environment, tried rebuilding the mkinitcpio image, didn't work.  Tried downgrading the kernel, didn't work.
    I then assumed it was just some software issue that I couldn't figure out, so I reinstalled Arch.  No change.
    Here's what my screen looks like when it hangs:
    Any ideas would be very much appreciated.  I'm completely stumped here.
    Last edited by noahsark1126 (2011-06-15 23:32:34)

    jnguyen: 
    I have another arch system, a desktop, that I tend to keep pretty much in sync with my laptop.  So I can look in the logs on that system to see what was upgraded.  The other notable packages in that upgrade were probably udev, initscripts, and mkinitcpio.  I will try downgrading those.
    Leonid.I:
    I'm using the 2010.05 arch release, which has kernel 2.6.33.  I see two cores in the live env, as I should, and there's nothing to suggest any problems in the logs.
    I'm actually now getting a completely different hang screen:
    Of course I don't know what this one means either...

  • After upgrade System fail to boot

    Hi,
    few days ago I did the system upgrade and after reboot i get several errors and the system doesn't boot, the first one in the list is:
    FATAL could not load "/lib/modules/3.0-ARCH/modules.dep" no such file or directory
    I think the problem is that in my /lib/modules/ dir there is no /3.0-ARCH dir but there is the 3.1.4.1-ARCH and the 3.1 extramodules.
    why that? Is this problem coming from the upgrade?
    also the network is not recognized
    and the RAID disks are not mounted
    the only thing I found on internet is this article:
    https://bbs.archlinux.org/viewtopic.php?id=129970
    but I cannot downgrade because the pkg dir is empty and I cannot connect to internet for get it
    can you please help me?
    thanks

    I found something maybe useful...
    in the dmesg I found that the boot disk is loaded as sdc but, I'm sure it was sda before the upgrade.
    in the menu.lst there is
    - title Arch lunix [/boot/vmlinuz.linux]
    - root (hd0,0)
    - kernel /vmlinuz-linuz root=/dev/sda3 ro
    - initrd /initramfs-linux.img
    do you think that changing something in this I can have back my boot partition?

  • How do I get recover disc for vista when system will not boot???? For Pavilion pc a6157c

    Pavilion pc a6157c   How do I get recover disc for vista when system will not boot????

    Read THIS HP Support Document concerning ordering recovery discs for your HP a6157c. Go to THIS HP webpage to order the "Vista Home Premium 32bit 73NAv3PrA1 + Supp 4 Recovery Kit" for your computer. If you are not looking to order the recovery discs or have some other issue with your computer, please provide detailed information concerning the problem.
    Frank
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • [SOLVED] udev rules for U2F FIDO Plug-up key

    I just received a cheap U2F FIDO key (http://www.amazon.com/Plug-up-Internati … 00OGPO3ZS/) but couldn't use it under Chrome 38. I had to add the following rule to /etc/udev/rules.d/45-u2f.rules
    SUBSYSTEM=="hidraw", MODE="0666", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0"
    and then issued a
    # sudo udevadm trigger
    Should work with other vendors assuming you change the idVendor and idProduct.
    Have fun!

    LukeHandle wrote:Was thinking about the same device, what are you thoughts on it so far? I was mostly concerned with the price and how that translated to the quality, or lack thereof.
    The device for which I sent a link for is cheap one and when you receive it actually looks cheap but does the job. Initially I thought I needed to install the FIDO U2F Chrome extension https://chrome.google.com/webstore/deta … ionmgcdmne but it works just fine without it assuming you are using Chrome or Chromium 38+ and the above udev rule on ArchLinux (not required on Windows and MAC OS).
    Use case is fairly limited so far since it can only be used on Google account. I tried to use this Plug-Up U2F dongle on Yubico U2F demo page http://demo.yubico.com/start/u2f/neo but it doesn't work and thus even with the FIDO U2F Chrome extension...Weird since I thought all U2F will all be compatible. Since the protocol is open I hope other use cases will arise such as more major supported websites, easy integration in existing frameworks such as Wordpress, Roundcube... but also alternative uses such as 2nd factor authentication for disk encryption (LUKS).

  • [solved] My udev rule for my Android phone doesn't work, not sure why

    I have the HTC G1 Android phone and I'm trying to get a udev rule working for it.  This is my rule ...
    /etc/udev/rules.d/50-android.rules
    SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666", NAME=="android"
    ... but when I connect my phone, /dev/android doesn't appear.  0bb4 is correct ...
    /sys/class/usb_device/usbdev5.2/device/idVendor
    0bb4
    ... so what's going on?
    Last edited by synthead (2008-11-28 15:19:09)

    There is, but I can already use it that way.  I'm learning how to code in java so I can develop applications for it.  There's a feature in the SDK where you can install and run your code on your Android device fairly seamlessly.  You literally hit "Run" and a few moments later, your phone's going to town.  But for this to work, permissions need to be set (0666).  But my udev rule does nothing and I dont understand why.
    This is where I got this information: http://code.google.com/android/intro/de … cehardware

  • [solved] udev-rules for bluetooth PCMCIA

    My plan:
    get my bluetooth-PCMCIA card to work:
    CONCEPTONIC CBT100C
    Problem:
    I have to issue the following command for it to work:
    #hciattach ttyS0 bcsp
    Therefor I wrote following udev-rule that doesn't work:
    ##/etc/udev/rules.d/05-bluez-pcmcia-support.rules
    SUBSYSTEMS=="pcmcia", ATTRS{prod_id2}=="Bluetooth Card", RUN+="/usr/sbin/hciattach ttyS0 bcsp"
    My Question:
    Could someone explain to me why this rule does not work?
    Info:
    #pccardctl info
    PRODID_1="PCMCIA"
    PRODID_2="Bluetooth Card"
    PRODID_3=""
    PRODID_4=""
    MANFID=0279,950b
    FUNCID=2
    after #hciattach ttyS0 bcsp
    #udevinfo -a -p /sys/devices/pci0000\:00/0000\:00\:1e.0/0000\:06\:09.0/0.0/tty/ttyS0/
    KERNEL=="ttyS0"
    SUBSYSTEM=="tty"
    DRIVER==""
    ATTR{dev}=="4:64"
    looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:06:09.0/0.0/tty':
    KERNELS=="tty"
    SUBSYSTEMS==""
    DRIVERS==""
    looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:06:09.0/0.0':
    KERNELS=="0.0"
    SUBSYSTEMS=="pcmcia"
    DRIVERS=="serial_cs"
    ATTRS{modalias}=="pcmcia:m0279c950Bf02fn00pfn00pa281F1C5Dpb7664FB1Dpc00000000pd00000000"
    ATTRS{prod_id2}=="Bluetooth Card"
    ATTRS{prod_id1}=="PCMCIA"
    ATTRS{card_id}=="0x950b"
    ATTRS{manf_id}=="0x0279"
    ATTRS{func_id}=="0x02"
    ATTRS{pm_state}=="on"
    ATTRS{function}=="0x00"
    looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:06:09.0':
    KERNELS=="0000:06:09.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="yenta_cardbus"
    ATTRS{msi_bus}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="2"
    ATTRS{modalias}=="pci:v00001180d00000476sv0000144Dsd0000C01Ebc06sc07i00"
    ATTRS{local_cpus}=="f"
    ATTRS{irq}=="16"
    ATTRS{class}=="0x060700"
    ATTRS{subsystem_device}=="0xc01e"
    ATTRS{subsystem_vendor}=="0x144d"
    ATTRS{device}=="0x0476"
    ATTRS{vendor}=="0x1180"
    looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{msi_bus}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v00008086d00002448sv00000000sd00000000bc06sc04i01"
    ATTRS{local_cpus}=="f"
    ATTRS{irq}=="0"
    ATTRS{class}=="0x060401"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{device}=="0x2448"
    ATTRS{vendor}=="0x8086"
    looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
    ATTRS{uevent}==""
    #dmesg
    pccard: PCMCIA card inserted into slot 0
    cs: memory probe 0xb4000000-0xb40fffff: excluding 0xb4000000-0xb400ffff
    pcmcia: registering new device pcmcia0.0
    ttyS0: detected caps 00000700 should be 00000100
    0.0: ttyS0 at I/O 0x400 (irq = 3) is a 16C950/954
    Last edited by mehldutt (2007-08-07 18:04:37)

    I called it
    05-bluez-pcmcia-support.rules
    I rebooted but still no success.
    I also tried this:
    ACTION=="add", SUBSYSTEMS=="pcmcia", ATTRS{prod_id2}=="Bluetooth Card", RUN+="aplay /usr/share/sounds/phone.wav"
    But still no success

  • Udev rules for a modem

    The following udev rule was given to me last February to get a friends dial-up working:
    KERNEL=="ttyS[0-9]", NAME=="%k", MODE=="0660", GROUP=="tty", SYMLINK+="modem"
    I have just updated the system and I am aware that the udev rules have changed. It is not an area that I usually venture into. What is now needed to achieve a suitable device creation at boot-up to have the modem recognised?
    Thanks.

    Thanks byte. This got rid of the messages but didn't solve the connection problem    I have now reverted back to the orginal options file as this does match the old one. This is really strange. I created a separate partition and rsynced the original Arch install across and updated grub. I then updated one installation and left the other alone just in case I ran into problems. As it happened the upgrade went fine and both old and new installations run fine except the dial-up on neither works    I am now beginning to think it might be a problem with the ISP (uklinux.net), but their website does not suggest any status issues.
    I went back through the errors.log on the old installation and found that the:
    Dec 28 18:27:51 hollowood pppd[3498]: Cannot determine ethernet address for proxy ARP
    always occurs and does not stop the connection. I have checked the /etc/rc.conf as I had to make some changes in connecting and disconnecting to my network and have got rid of the other messages that way.  There are no other error messages and wvdial runs through the connection and disconnection process perfectly. Is there anything else I could have overlooked or could this be problems with the ISP?

  • Configuring udev rules for Oracle 10g R2 Rac on OEL 5.5 U4 with Qnap

    I'm trying to setup a 10g RAC Cluster following the guide by Jeff Hunter on http://www.idevelopment.info/
    I have to admit, im no Linux admin, and have searched round the net for help with the following Issue.
    I'm trying to set my iSCSI targets to have persistent mappings using udev rules
    This is what I have done so far
    [root@racnode1 Server]# iscsiadm -m discovery -t sendtargets -p nas-priv | grep 192.168.2.196
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d
    -- Manually Log into iSCSI Targets
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d -p 192.168.2.196 -l
    -- Make iSCSI Targets Automatically Login
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    -- Create Persistent Local SCSI Device Names
    - Identify Mappings
    [root@racnode1 ~]# (cd /dev/disk/by-path; ls -l qnap | awk '{FS=" "; print $9 " " $10 " " $11}')
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d-lun-0 -> ../../sdg
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d-lun-0 -> ../../sdf
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d-lun-0 -> ../../sdi
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d-lun-0 -> ../../sdd
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d-lun-0 -> ../../sdj
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d-lun-0 -> ../../sdc
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d-lun-0 -> ../../sdb
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d-lun-0 -> ../../sde
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d-lun-0 -> ../../sdh
    - Create Rules File
    cat >> /etc/udev/rules.d/55-openiscsi.rules <<EOF
    # /etc/udev/rules.d/55-openiscsi.rules
    KERNEL=="sd*", BUS=="scsi", PROGRAM="/etc/udev/scripts/iscsidev.sh %b",SYMLINK+="iscsi/%c/part%n"
    EOF
    - Create Shell Script
    mkdir -p /etc/udev/scripts
    vi /etc/udev/scripts/iscsidev.sh
    #!/bin/sh
    # FILE: /etc/udev/scripts/iscsidev.sh
    BUS=${1}
    HOST=${BUS%%:*}
    [ -e /sys/class/iscsi_host ] || exit 1
    file="/sys/class/iscsi_host/host${HOST}/device/session*/iscsi_session*/targetname"
    target_name=$(cat ${file})
    # This is not an open-scsi drive
    if [ -z "${target_name}" ]; then
    exit 1
    fi
    # Check if QNAP drive
    check_qnap_target_name=${target_name%%:*}
    if [ $check_qnap_target_name = "iqn.2004-04.com.qnap" ]; then
    target_name=`echo "${target_name%.*}"`
    fi
    echo "${target_name##*.}"
    chmod 755 /etc/udev/scripts/iscsidev.sh
    service iscsi stop
    service iscsi start
    [root@racnode1 ~]# ls /dev/iscsi/*
    ls: /dev/iscsi/*: No such file or directory
    1.) For some reason I cannot get the mappings to work correctly, I have rebooted the server and tried a number of different changes in the rules script. But for the life of me I cannot get it work.
    I noticed when I rebooted the server that it failed to execute the iscsidev. When I manually run the shell script with a parameter it produces output
    Can anyone help me to get this up and running?
    2.) My QNAP Nas doesnt seem to publish iSCSI targets to only one NIC. I think this is down to the firmware/feature not being available. When I discover targets I get the following
    [root@racnode1 ~]# (cd /dev/disk/by-path; ls -l *qnap* | awk '{FS=" "; print $9 " " $10 " " $11}')
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d-lun-0 -> ../../sdh
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d-lun-0 -> ../../sdm
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d-lun-0 -> ../../sdn
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d-lun-0 -> ../../sde
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d-lun-0 -> ../../sdr
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d-lun-0 -> ../../sdd
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d-lun-0 -> ../../sdb
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d-lun-0 -> ../../sdk
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d-lun-0 -> ../../sdp
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d-lun-0 -> ../../sdi
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d-lun-0 -> ../../sdg
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d-lun-0 -> ../../sdo
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d-lun-0 -> ../../sdj
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d-lun-0 -> ../../sds
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d-lun-0 -> ../../sdf
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d-lun-0 -> ../../sdc
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d-lun-0 -> ../../sdl
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d-lun-0 -> ../../sdq
    It shows the same targets on both NIC's, I only need them on the private ip 192.168.2.196
    Edited by: user1728822 on 07-May-2011 15:53
    Edited by: user1728822 on 07-May-2011 16:08

    Hi,
    I'm facing the same issue.. If your issue is fixed..could you please let me know?
    I'm trying to configure 11g RAC with OPenfiler and got stuck here.
    Regards,
    Kumar

  • Udev rules for dvd/cd automounting?

    This came up elsewhere and I got curious. In my long absence from caring about fstab, I mistakenly though that uncommenting the dvd and cd lines would get to an automount situation. I realize that this is incorrect. I started to study the udev rules that I got here in the forums for automounting removable devices and I'm wondering how to adapt it to cd and dvd drives. Any thoughts?
    -- Edit --
    It seems like this is what /etc/udev/rules.d/75-cd-aliases-generator.rules.optional is supposed to be doing, but it's not. I'm missing something.

    I think the initramfs brings up the internal hard drives before it starts udev, so the "add" event that makes it mount stuff is never called.
    If you want to automatically mount a filesystem on boot (especially if it's on a non-removable medium), you should add an entry for it to /etc/fstab instead of relying on udev to mount it.
    Here's the wiki article for fstab.  Should be all you need.
    Last edited by alexandrite (2010-07-23 04:55:10)

  • Udev rules for discharging battery

    Hi there,
    I'm trying to define a udev rule that triggers a script of mine at a certain level of battery charge (e.G. five percent). Unfortunately nothing happens (cross-checked the x-bit and typos already)
    low-battery.rules:
    KERNEL=="BAT0", ATTR{status}=="Discharging", ATTR{capacity}=="5", RUN+="/usr/local/bin/backlight"
    That's the part of udevadm I took as a ref point for the rules file:
    looking at device '/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0':
        KERNEL=="BAT0"
        SUBSYSTEM=="power_supply"
        DRIVER==""
        ATTR{type}=="Battery"
        ATTR{alarm}=="0"
        ATTR{charge_full_design}=="2261000"
        ATTR{current_now}=="2945000"
        ATTR{charge_now}=="1244000"
        ATTR{charge_full}=="2261000"
        ATTR{capacity}=="55"
        ATTR{status}=="Charging"
        ATTR{voltage_now}=="11549000"
        ATTR{model_name}=="Primary"
        ATTR{manufacturer}=="Hewlett-Packard"
        ATTR{technology}=="Li-ion"
        ATTR{cycle_count}=="0"
        ATTR{voltage_min_design}=="10800000"
        ATTR{serial_number}=="26362 2013/05/10"
        ATTR{present}=="1"

    I don't think that most computers send events when the battery percentage changes.  I think it might be better to simply run a cron job that checks for battery level and reacts accordingly (or a systemd.timer).

  • Udev Rules for Monitors

    So I've got a bit of a fluid monitor setup.  Three different screens with three different configurations that are switched among rather often.  I wrote a script using xrandr to handle this, and it works very well when it gets called.  I thought it would be really nice to have it automated whenever I plugged in or unplugged a monitor, so I took a look with udevadm, and it spits out the same two events when I plug/unplug my VGA monitor.
    KERNEL[44363.562487] change /devices/pci0000:00/0000:00:02.0/drm/card1 (drm)
    UDEV [44363.572260] change /devices/pci0000:00/0000:00:02.0/drm/card1 (drm)
    udevadm --query=all --path=/devices/pci0000:00/0000:00:02.0/drm/card1 (drm)
    P: /devices/pci0000:00/0000:00:02.0/drm/card1
    N: dri/card1
    E: DEVNAME=/dev/dri/card1
    E: DEVPATH=/devices/pci0000:00/0000:00:02.0/drm/card1
    E: DEVTYPE=drm_minor
    E: MAJOR=226
    E: MINOR=1
    E: SUBSYSTEM=drm
    E: TAGS=:udev-acl:
    E: UDEV_LOG=3
    E: USEC_INITIALIZED=18414634
    Based on that information, I made a udev rule that I thought would do exactly what I wanted.
    KERNEL=="dri/card1", ACTION=="change", RUN+="/usr/bin/monfix"
    Unfortunately, nothing happens.
    I've never messed with udev before, and I learned a lot in this effort, but I seem to be doing something wrong here, and I can't quite figure out what it is.  Can someone point this out for me?

    Try this
    Use ATTR or ATTRS.
    -SYSFS{idVendor}=="1443", MODE="666"
    -ACTION=="add", SYSFS{idVendor}=="0403", SYSFS{manufacturer}=="Digilent", MODE="666", RUN+="/usr/sbin/dftdrvdtch %s{busnum} %s{devnum}"
    +ATTRS{idVendor}=="1443", MODE="666"
    +ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{manufacturer}=="Digilent", MODE="666", RUN+="/usr/sbin/dftdrvdtch %s{busnum} %s{devnum}"
    +ATTR{idVendor}=="1443", MODE="666"
    +ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Digilent", MODE="666", RUN+="/usr/sbin/dftdrvdtch %s{busnum} %s{devnum}"

  • Udev rule for mobile phone

    Hi.
    I want to sync my phone with my laptop but the udev rule don't want to work.
    I did it like descriped here: http://libsyncml.opensync.org/wiki/obex-guide
    # lsusb
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 005: ID 0fce:d042 Sony Ericsson Mobile Communications AB
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000
    # vi /etc/udev/rules.d/w810i.rules
    BUS=="usb", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="d042", MODE="0660", GROUP="users"
    # udevcontrol reload_rules
    But i can't connect as user to the mobile - as root it works as expected.
    Any ideas?
    Thanks, Andreas

    I'm pretty sure it's the same problem as described in comments of this bug report: http://bugs.archlinux.org/task/9935#comment26467
    As a workaround maybe you can substitute the idVendor attribute with another(s).

Maybe you are looking for

  • Buffered reader / data inputstream

    I need to find out how to enter array numbers in from the keyboard i think it might be by using buffered reader, but i dont know th exact code can anybody help me! Cheers

  • Print just what is typed in the text field without printing the text fields

    Hello, I'm trying to print a form after I filled in the text fields, but would like it to print just what I typed in the field, not the text field and the color in the text field. I use CS3. Any help would be appreciated!

  • Activating acrobat 7.0

    From <Removed by Moderator> To, Adobe Support Dept. I format-installed a desktop P.C. I installed Acrobat Professional 7.0, but it is not activating. This is license copy. What to do in such case? Will you pls. inform me on my email address -- <Remov

  • Keynote file (OSX 10.9.5) does not show up in iCloud drive

    I have created a keynote presentation, using OS X 10.9.5, saving it in iCloud. The next day I wanted to continue to work on the presentation. But it does not show in iCloud Drive, whereas Keynote states, that the file is stored in iCloud Drive. That´

  • Adapter Engine : Cache Connectivity Test

    Hi, We have recently migrated our PI system's database from one host to the other and as a result there were some duplicate entries for exchange infrastructure components in SLD. At this besides other problems we have noticed the Adapter Cache Connec