Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271837 - sys-apps/hal-0.5.12_rc1-r5 conf changes break X
Summary: sys-apps/hal-0.5.12_rc1-r5 conf changes break X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords: PMASKED
: 271851 (view as bug list)
Depends on:
Blocks: 271833
  Show dependency tree
 
Reported: 2009-05-30 07:33 UTC by Mark Nowiasz
Modified: 2009-06-07 14:47 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
old (-r4) hal.conf (hal.conf,4.80 KB, text/plain)
2009-05-30 16:24 UTC, nicodache
Details
r5 hal config (hal.conf,2.65 KB, text/plain)
2009-05-31 01:14 UTC, Robert Förster
Details
new patch (0001-plugdev-dbus-policy.patch,6.25 KB, patch)
2009-06-01 00:51 UTC, Jonathan Callen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Nowiasz 2009-05-30 07:33:28 UTC
After upgrading to sys-apps/hal-0.5.12_rc1-r5, neither keyboard nor mouse works in X11 - even switching to a console doesn't work.

My guess would be a broken hal.conf, since this update (after doing etc-update) removes lots of entries.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-apps/hal-0.5.12_rc1-r5
2.
3.

Actual Results:  
Keyboard and mouse doesn't work any more in X


spectre ~ # emerge --info                      
Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r5 x86_64)                                                                        
=================================================================                    
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1                                                                     
Timestamp of tree: Sat, 30 May 2009 06:45:03 +0000                                   
ccache version 2.4 [enabled]                                                         
app-shells/bash:     4.0_p24                                                         
dev-java/java-config: 2.1.8                                                          
dev-lang/python:     2.6.2-r1                                                        
dev-util/ccache:     2.4-r8                                                          
dev-util/cmake:      2.6.4                                                           
sys-apps/baselayout: 2.0.1                                                           
sys-apps/openrc:     0.4.3-r2                                                        
sys-apps/sandbox:    1.9                                                             
sys-devel/autoconf:  2.13, 2.63-r1                                                   
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                       
sys-devel/binutils:  2.19.1-r1                                                       
sys-devel/gcc-config: 1.4.1                                                          
sys-devel/libtool:   2.2.6a                                                          
virtual/os-headers:  2.6.29                                                          
ACCEPT_KEYWORDS="amd64 ~amd64"                                                       
CBUILD="x86_64-pc-linux-gnu"                                                         
CFLAGS="-march=amdfam10 -O2 -pipe"                                                   
CHOST="x86_64-pc-linux-gnu"                                                          
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"                                                  
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                       
CXXFLAGS="-O2 -pipe"                                                                 
DISTDIR="/usr/portage/distfiles"                                                     
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                       
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ "                                                                        
LANG="de_DE.utf8"                                                                    
LDFLAGS="-Wl,-O1"                                                                    
LINGUAS="de"                                                                         
MAKEOPTS="-j5"                                                                       
PKGDIR="/usr/portage/packages"                                                       
PORTAGE_CONFIGROOT="/"                                                               
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                 
PORTAGE_TMPDIR="/var/tmp"                                                            
PORTDIR="/usr/portage"                                                               
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"                                
USE="3dnow X a52 aac aalib acl acpi aim alsa amd64 apache2 audiofile bash-completion bcmath bluetooth branding bzip2 cairo calendar cddb cdparanoia cdr cli consolekit cracklib crypt cscope css ctype cups curl cxx dbus djvu dri dts dv dvb dvd dvdr dvdread encode enscript exif expat fam ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp glib glut gmp gnuplot gnutls gpg gphoto2 gpm gps graphviz gsl gtk gzip hal hddtemp htmlhandbook iconv icq icu idn imagemagick imap imlib innodb isdnlog jabber java java6 javascript jbig jingle jpeg jpeg2k kde kontact kpathsea lame lash latex lcms ldap libcaca libnotify libsamplerate libwww lm_sensors lua lzo mad maildir mailwrapper matroska mhash midi mime mmap mmx mng modplug mp2 mp3 mp4 mpeg mpi mplayer msn mudflap multilib musepack musicbrainz mysql mysqli ncurses netcdf nls nntp nptl nptlonly nsplugin nvram offensive ofx ogg openal openexr opengl openmp oscar pam pcntl pcre pda pdf perl php plasma png posix postgres ppds pppd python qt3 qt4 quicktime raw rdesktop readline recode reflection rss samba sasl sdl session sharedext sharedmem shorten slang smp sndfile snmp soap sockets sox speex spell spl sse sse2 ssl startup-notification subversion suid svg sysfs syslog sysvipc szip taglib tcpd theora threads tidy tiff timidity tokenizer truetype unicode usb v4l2 vcd videos vim-syntax vnc vorbis wavpack webdav webkit wlm wmf x264 xattr xface xft xine xml xorg xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo yaz zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Oschtan 2009-05-30 07:41:07 UTC
Similaly. x11-base/xorg-server-r6, nvidia-drivers-180.60, ~amd64...
Comment 2 Alessandro Rosetti 2009-05-30 10:47:26 UTC
I have the same problem with hal -r5!

~amd64, nvidiadrivers-185.18.10, xorg-server-1.6.1.901-r3 &co
Comment 3 DaggyStyle 2009-05-30 11:36:25 UTC
same here xorg 1.5.3-r6, amd, ati radeon svn.
I think it is related to the conf file which has couple of lines removed from
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2009-05-30 14:48:58 UTC
*** Bug 271851 has been marked as a duplicate of this bug. ***
Comment 5 nicodache 2009-05-30 16:24:13 UTC
Created attachment 192992 [details]
old (-r4) hal.conf
Comment 6 nicodache 2009-05-30 16:26:04 UTC
for those who want their keyboard back without waiting a patch/update, here is attached my /etc/dbus-1/system.d/hal.conf

otherwise, you may also want to
emerge =sys-apps/hal-0.5.12_rc1-r4
etc-update and merge conf file as suggested
emerge hal
etc-update and refuse the update.
Comment 7 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-31 00:13:46 UTC
Could someone with this problem please post the USE flags they have set on hal, and the hal.conf that got installed?  This is working fine for me.
Comment 8 Robert Förster 2009-05-31 01:14:02 UTC
Created attachment 193031 [details]
r5 hal config

USE="X acpi crypt -apm -consolekit -debug -dell -disk-partition -doc -laptop -policykit (-selinux)
Comment 9 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-31 01:20:38 UTC
Okay, next question:  Are you all in the plugdev group?  -r4 was mistakenly letting everyone access HAL.  -r5 is back to allowing only plugdev.
Comment 10 Oschtan 2009-05-31 02:16:55 UTC
(In reply to comment #9)
> Okay, next question:  Are you all in the plugdev group?  -r4 was mistakenly
> letting everyone access HAL.  -r5 is back to allowing only plugdev.
> 

Keyboard and mouse stops working yet when xdm starting...
Comment 11 R Bar-On 2009-05-31 06:31:08 UTC
yep, I'm in plugdev and have the same issue.
Comment 12 Nick Novikov 2009-05-31 11:26:47 UTC
User root should be in group plugdev too, so xdm will start without problems
Comment 13 PM 2009-05-31 12:11:01 UTC
Is this bug only about keyboard/mouse not working? If so, why was 271851 marked as duplicate of it? It seems to me as these are two separate issues (but I'm not an expert ;) ).
Comment 14 Ben de Groot (RETIRED) gentoo-dev 2009-05-31 14:39:44 UTC
(In reply to comment #13)
> Is this bug only about keyboard/mouse not working? If so, why was 271851 marked
> as duplicate of it? It seems to me as these are two separate issues (but I'm
> not an expert ;) ).

No, this bug is about all issues with X caused by the new hal.conf changes. Summary adjusted.
Comment 15 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-31 15:32:30 UTC
(In reply to comment #12)
> User root should be in group plugdev too, so xdm will start without problems
> 

Does putting root in plugdev actually fix it?

I'm in the process of setting up a -policykit test box to see if I can reproduce this.
Comment 16 Nick Novikov 2009-05-31 16:33:05 UTC
(In reply to comment #15)
> > User root should be in group plugdev too, so xdm will start without problems
> Does putting root in plugdev actually fix it?

Yes it does, xdm starts normally.
Comment 17 Haze 2009-05-31 17:38:15 UTC
Hi

On my computer (x86 ~arch) X and gdm launch 10 seconds and after crash, and put this error in  "/var/log/Xorg.0.log" :

Backtrace:
0: /usr/bin/X(xorg_backtrace+0x37) [0x812744f]
1: [0x8510ec0]

Fatal server error:
Caught signal 11.  Server aborting
-------------------------------------------------
But root was not in plugdev group. Now I put it in  !!
I've keep sys-apps/hal-0.5.12_rc1-r4 for the moment because everything works.
Comment 18 Howard B. Golden 2009-05-31 19:01:53 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > > User root should be in group plugdev too, so xdm will start without problems
> > Does putting root in plugdev actually fix it?
> 
> Yes it does, xdm starts normally.
> 
IMO, this is a workaround for a bug. Requiring root to be in _any_ group for things to work makes no sense. I believe the code should be fixed to require group plugdev OR root. Until this is changed, I request that this version stay masked. Thanks.
Comment 19 Jonathan Callen (RETIRED) gentoo-dev 2009-06-01 00:51:33 UTC
Created attachment 193100 [details, diff]
new patch

(In reply to comment #18)
> (In reply to comment #16)
> > (In reply to comment #15)
> > > > User root should be in group plugdev too, so xdm will start without
> > > > problems
> > > Does putting root in plugdev actually fix it?
> > 
> > Yes it does, xdm starts normally.
> > 
> IMO, this is a workaround for a bug. Requiring root to be in _any_ group for
> things to work makes no sense. I believe the code should be fixed to require
> group plugdev OR root. Until this is changed, I request that this version stay
> masked. Thanks.
> 

Attached is a new, untested, version of 0001-plugdev-dbus-policy.patch that should make things Just Work™ by explicitly giving user="root" all the permissions given to group="plugdev".  This is untested because I have USE=policykit set on my machine, which was *not* broken by this update.  This is an ugly hack, but it should work.
Comment 20 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-06-01 22:52:42 UTC
Okay, I've committed hal-0.5.12_rc1-r6 (also masked for now) that fixes this issue on all my systems.  Could people try it, and make sure it works for them as well?
Comment 21 keenblade 2009-06-02 13:50:45 UTC
(In reply to comment #20)
> Okay, I've committed hal-0.5.12_rc1-r6 (also masked for now) that fixes this
> issue on all my systems.  Could people try it, and make sure it works for them
> as well?
> 

Thanks. It fixed the issue for my ~amd64 system, too. Now I have keyboard, mouse and touchpad working again.
Comment 22 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-06-02 15:15:01 UTC
Thanks.  I've unmasked -r6.
Comment 23 Nico R. Wohlgemuth 2009-06-07 14:39:58 UTC
Whatever you have done I have the same problem as before, my X won't start.
Comment 24 Nico R. Wohlgemuth 2009-06-07 14:47:51 UTC
Oh sorry. Nevermind. That was not hal causing the problem now.