Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HAL issues with KDE 3.5.4
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu Sep 07, 2006 10:12 pm    Post subject: Reply with quote

Must be something "extra" causing issues for some people's systems.

I have never had most gnome components installed on my system. (ivman included)
I have no entries for any removeable devices in my /etc/fstab, have not created any HAL rules, everything is the default install and all devices seem to work perfect.

Code:
emerge -pv hal dbus pmount kdelibs kdebase-kioslaves udev

These are the packages that would be merged, in order:

Calculating dependencies       ... done!
[ebuild   R   ] sys-apps/hal-0.5.7-r3  USE="acpi -crypt -debug -dmi -doc -pcmcia" 0 kB
[ebuild   R   ] sys-apps/dbus-0.61-r1  USE="X -debug -doc -gtk -mono python qt3" 0 kB
[ebuild   R   ] sys-apps/pmount-0.9.9  USE="-crypt" 0 kB
[ebuild   R   ] kde-base/kdelibs-3.5.4-r1  USE="acl alsa arts cups -debug doc -fam jpeg2k kdeenablefinal kdehiddenvisibility -kerberos -legacyssl -noutempter -openexr spell ssl tiff -xinerama -zeroconf" 0 kB [1]
[ebuild   R   ] kde-base/kdebase-kioslaves-3.5.4  USE="-arts -debug hal kdeenablefinal kdehiddenvisibility -ldap -openexr samba -xinerama" 0 kB
[ebuild   R   ] sys-fs/udev-087-r1  0 kB
Back to top
View user's profile Send private message
lxnay
Retired Dev
Retired Dev


Joined: 09 Apr 2004
Posts: 661
Location: Italy

PostPosted: Fri Sep 08, 2006 11:00 pm    Post subject: Reply with quote

open:
Code:
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi

at line 74, change true to false.
Restart Hal & login again into KDE.

that's a gentoo bug that I am going to open tomorrow on bugzilla. I was talking with K. Ottens about that.
_________________
http://www.sabayon.org
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Sep 08, 2006 11:43 pm    Post subject: Reply with quote

lxnay wrote:
open:
Code:
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi

at line 74, change true to false.
Restart Hal & login again into KDE.

that's a gentoo bug that I am going to open tomorrow on bugzilla. I was talking with K. Ottens about that.

What exactly does the ignore.volume option do/mean?

And what is even more puzzling, if changing this to false works, why does having it set to true work for some of us?
Back to top
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Sat Sep 09, 2006 3:12 am    Post subject: Reply with quote

lxnay wrote:
open:
Code:
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi

at line 74, change true to false.
Restart Hal & login again into KDE.

that's a gentoo bug that I am going to open tomorrow on bugzilla. I was talking with K. Ottens about that.


thanx!!! it worked great!!! finally!
_________________
Never argue with an idiot. They will only pull you down to their level, then beat you with experience.
Back to top
View user's profile Send private message
vlow
n00b
n00b


Joined: 27 Jan 2005
Posts: 67
Location: Munich, Germany

PostPosted: Sat Sep 09, 2006 5:39 pm    Post subject: Reply with quote

this still doen't work for me. my user is member of plugdev, i changed line 74, but still everytime i try to mount (as root) i get an error, telling me that
Code:
"a security policy in place prevents this sender from sending this message to this receipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
whereas the error, when i try it as user, just gives me an "access denied". something i forgot ?
Back to top
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Sat Sep 09, 2006 9:53 pm    Post subject: Reply with quote

I think that you should also add
Code:
<allow send_destination="org.freedesktop.Hal"/>
 <allow receive_sender="org.freedesktop.Hal"/>
in
Code:
/etc/dbus-1/system.conf
in the policy section..
_________________
Never argue with an idiot. They will only pull you down to their level, then beat you with experience.
Back to top
View user's profile Send private message
vlow
n00b
n00b


Joined: 27 Jan 2005
Posts: 67
Location: Munich, Germany

PostPosted: Sat Sep 09, 2006 10:45 pm    Post subject: Reply with quote

yeah right. i did that. didn't change anything. any other suggestions ?
Back to top
View user's profile Send private message
vlow
n00b
n00b


Joined: 27 Jan 2005
Posts: 67
Location: Munich, Germany

PostPosted: Sun Sep 10, 2006 5:22 pm    Post subject: Reply with quote

update: i deleted the concerned entries from /etc/fstab and everything works out great. however, i doubt that this is the way it's meant to be....
Back to top
View user's profile Send private message
claudio
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2005
Posts: 84
Location: Bern, Switzerland

PostPosted: Sun Sep 10, 2006 9:06 pm    Post subject: Reply with quote

I have followed the discussion and I really think this is a matter of the KDE user files (~/.kde/...). Why? I have installed two PCs with KDE 3.5.4 from an empty hard disk; everything has been compiled with USE="hal". The newer PC has no problems with the "Autorun" feature in KDE - while the other (older one) doesn't work (ivman mounts correctly, KDE-HAL is disabled). What's the difference? For the newer one, I used the user profile from KDE 3.4; the older PC didn't have any previous users on the system and has therefore the default config.

Is there a possibility to figure out why KDE puts the message out: "No support for HAL on this system" in the control center? All services are running (Kernel 2.6.17 - udevd, dbus, hald, hotplug, ivman) and working correctly - except KDE...

Note: kdebase-kioslaves is blocked by kdebase. I don't know how you guys have emerged this...

Thanx for any help.
Claudio
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Sep 11, 2006 12:41 am    Post subject: Reply with quote

claudio wrote:
Note: kdebase-kioslaves is blocked by kdebase. I don't know how you guys have emerged this...

Thanx for any help.
Claudio

You have mixed split KDE ebuilds with the monolithic KDE ebuilds.
Back to top
View user's profile Send private message
Vlad.Sharp
Guru
Guru


Joined: 08 Dec 2004
Posts: 337
Location: Cambridgeshire, UK

PostPosted: Sun Sep 17, 2006 7:41 pm    Post subject: Reply with quote

I'm extremely annoyed with HAL. I've tried every fix I could find (and certainly all that were suggested here), but still nothing - only "Feature only available with HAL".

My /etc/make.conf:
Code:
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j2"
LINGUAS="en_GB ru ja de"
USE="a52 aac acl acpi asf bash-completion bidi bzip2 cairo canna cdb
     cdparanoia cdr clamav dbus doc dv dvd dvdr dvdread exif fbcon ffmpeg fftw
     flac ftp gcj gd geoip glitz glut gmp gphoto2 hal icc ieee1394 imagemagick
     innodb java jikes jpeg2k kdeenablefinal memlimit mhash mime mmx mono
     mysql mysqli nptlonly nsplugin odbc openal pdf php plotutils posix
     postgres ppds ruby samba sharedmem simplexml smartcard sockets socks5
     sqlite sqlite3 sse sse2 svg tetex threads tidy tiff unicode usb vcd wifi
     win32codecs xcomposite xine xinerama xml2 xosd xpm xprint xscreensaver
     xvid kdehiddenvisibility opengl -mozilla -seamonkey firefox -arts -eds
     gnome X png gtk xml alsa encode kde mp3 truetype apache2 mad xmms vorbis
     jpeg gif spell gstreamer ogg esd sdl qt3 qt4 quicktime mpeg xv imlib
     foomaticdb apm mikmod gconf crypt unicode immqt-bc nls cjk oss aalib dts
     dxr3 theora network xvmc fuse"

FEATURES="ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/ccache"

PORTDIR_OVERLAY="/usr/local/portage" # /usr/local/overlays/axxo"
#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/layman/xgl-testing"

VIDEO_CARDS="vmware vesa nvidia"
INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse"
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1

GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://194.117.143.69 http://ftp.gentoo.or.kr/ ftp://ftp.nyx.hu/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
source /usr/portage/local/layman/make.conf


My emerge --info

Code:
Portage 2.1.2_pre1 (default-linux/x86/2006.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 17 Sep 2006 15:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.6-r1, 2.0.28-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1, 2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://194.117.143.69 http://ftp.gentoo.or.kr/ ftp://ftp.nyx.hu/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_GB.UTF-8"
LINGUAS="en_GB ru ja de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/science /usr/portage/local/layman/java-experimental /usr/portage/local/layman/java-migration-packages /usr/portage/local/layman/java-gcj-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi alsa apache2 apm asf bash-completion berkdb bidi bitmap-fonts bzip2 cairo canna cdb cdparanoia cdr cjk clamav cli crypt cups dbus dlloader doc dri dts dv dvd dvdr dvdread dxr3 elibc_glibc encode esd exif fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp fuse gcj gconf gd gdbm geoip gif glitz glut gmp gnome gphoto2 gpm gstreamer gtk hal icc ieee1394 imagemagick imlib immqt-bc innodb input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_vmmouse ipv6 isdnlog java jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ linguas_de linguas_en_GB linguas_ja linguas_ru mad memlimit mhash mikmod mime mmx mono mp3 mpeg mysql mysqli ncurses network nls nptl nptlonly nsplugin odbc ogg openal opengl oss pam pcre pdf perl php plotutils png posix postgres ppds pppd python qt3 qt4 quicktime readline reflection ruby samba sdl session sharedmem simplexml smartcard sockets socks5 spell spl sqlite sqlite3 sse sse2 ssl svg tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia video_cards_vesa video_cards_vmware vorbis wifi win32codecs xcomposite xine xinerama xml xml2 xmms xorg xosd xpm xprint xscreensaver xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Should I do an emerge -e kde-meta just for the fun of making sure everything works?
Back to top
View user's profile Send private message
Vlad.Sharp
Guru
Guru


Joined: 08 Dec 2004
Posts: 337
Location: Cambridgeshire, UK

PostPosted: Mon Sep 18, 2006 9:01 pm    Post subject: Ah - bea tutiful! Reply with quote

I've got everything back again (although HAL seems to be behaving strangely - i.e. it uses fstab first udev later and doesn't guess the filesystem type, but...)

Drive labels, USB Stick insertion - everything is working...

All thanks to: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377689

Quote:
<!-- You can change this to a more suitable user, or make per-group -->
<policy group="powerdev">
<allow
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
</policy>

<!-- Allow plugdev members to mount volumes -->
<policy group="plugdev">
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>


Which should be added to /etc/dbus-1/system.conf
Back to top
View user's profile Send private message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Wed Sep 27, 2006 2:29 am    Post subject: hal problems Reply with quote

hi guys, i just experienced a lot of this on my new black macbook. i just installed a fresh copy of kdebase-meta and it nabbed hal/dbus and all of that other stuff. i have tried a variety of things to get this thing to mount a disc but i kept getting that cannot send a message error from DBus.

But now it works :)

With Hal :)

Here's how i did it.

First you gotta be a member of the plugdev group.

Now go find the policy section for the plugdev group in /etc/dbus-1/system.d/hal.conf

Add these three lines:
<code>
<allow send_destination="org.freedesktop.Hal"/>
<allow receive_sender="org.freedesktop.Hal"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Mount"/>
</code>

Although, really, i could see it just being the last line. But mine works with all three. Now here's the catcher part. I was still getting the faithful 'Permissions Denied' error even though i had an entry in /etc/fstab for /mnt/dvdrw to mount with the user option. I commented it out and wham! it started mounting. After a bit more fiddling (because i still want to be able to mount the disc via the CLI) i learned that HAL will still mount the drive if the device is _exactly_ the same as the device that KDE is trying to mount. i changed /dev/dvdrw to /dev/hda and now it works wonderfully.

Hope this helps
_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
Back to top
View user's profile Send private message
F1r31c3r
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2007
Posts: 107
Location: UK

PostPosted: Mon Jul 26, 2010 7:43 pm    Post subject: How i fixed it GUI way Reply with quote

Hey all

I was having this issue for ages and thought bugger it ill fix it later i put it off so much today i threw my top and got it sorted lol.

Easy fix for them who like point and click with the mouse saves allot of files mods etc, anyway enough rambling here is the way i fixed it:


First Open a root terminal:

Type in the terminal:

Quote:
systemsettings


Then navigate to the advanced tab i am sure most of you are familiar with kde system settings its just in this case you need it in root. Note*** you can also back out/logout and login as root and load this GUI as a root user but hey i use it through a root terminal.

Anyway navigate the advanced tab and find at the bottom PolicyKit Authorisations.

One you got that expand:

Quote:
org.freedesktop.org
->Hal
->storage


Now you have that look for it, its there says
Quote:
Mount drives removable.. org.freedesktop.hal.storage.mount-removable


See it now click on it and in the right hand pain change the implicit authorizations to:
Quote:
Anyone = Yes
And hit the MODIFY button really that button needs changing to something more meaningful as you think it is to open a Modify dialog and not a OK/Save settings button lol

Do the same for eject media and any others, yet i advise only do this for removable media mainly Read Only helps keep things more secure that way.

Anyway thats it make sure you hit the Modify button before you navigate away from each element. :P :lol: :P .
_________________
A WikI, A collection of mass misinformation based on opinion and manipulation by a deception of freedom.
If we know the truth, then we should be free from deception (John 8:42-47 )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum