You are not logged in.
Hey there,
I've just switched back to gnome after using Xfce for a long time and I've got 2 problems which I just can't fix.
First, I've got problems with my keyboard layout. I'm using "ca variant fr" which is correctly set in /etc/hal/fdi/policy/10-keymap.fdi. When I'm in GDM, everything is fine. However, when I start my gnome session, things are pretty unpredictable. Sometime, I get an unknown layout. Some other time the layout is correct, but Alt+<arrow keys> types letters, etc. Either way, I can never get the keyboard shortcuts to switch to another workspace to work. I can correctly set them in the gnome settings, but they just don't work.
My other problem is that automount does not work for either cd/dvd and usb sticks. Here are some relevant config files:
/etc/PolicyKit/PolicyKit.conf
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.fredesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format --
<config version="0.1">
<match user="rognon">
<return result="yes"/>
</match>
</config>
/etc/dbus-1/system.d/hal.conf
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- This configuration file specifies the required security policies
for the HAL to work. -->
<!-- Only root or user hal can own the HAL service -->
<policy user="hal">
<allow own="org.freedesktop.Hal"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.Hal"/>
</policy>
<!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
<policy context="default">
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.DBus.Introspectable"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.DBus.Properties" />
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Manager"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.DockStation"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Leds"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.LightSensor"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Storage"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
</policy>
</busconfig>
/etc/hal/fdi/policy/preferences.fdi
<merge key="volume.ignore" type="bool">false</merge>
When I plug in a usb stick, nothing happens. Not even an error message. I'm able to manually mount my drive though.
Thanks,
Rognon
Offline
Is the usb stick okay with other machine/OS? If not, reformat it.
Offline
Have you checked your keyboard settings in rc.conf? Is your hal deamon running?
Offline
Is the usb stick okay with other machine/OS? If not, reformat it.
It's not just with one usb stick. I've tried with 3 and none of them work (but they work on other machines). I've also forgot to mention that the drive appears in nautilus. If I right-click on it, I can select "mount", but it does nothing, not even show an error message.
Also, everything works fine with my digital camera.
Have you checked your keyboard settings in rc.conf?
Yep:
KEYMAP="cf"
Is your hal deamon running?
I've put it in the DAEMONS array in my rc.conf, so I though that it was running. However, I'm having some doubts now:
$ ps x | grep hal
3220 ? Sl 0:00 /usr/lib/gvfs/gvfs-hal-volume-monitor
That's it. Nothing else.
Furthermore, if I do "/etc/rc.d/hal restart", it fails at both stopping and starting HAL. dmesg is of no use. Is there some place I could look for logs? I've looked in "/var/log" but can't find anything relevant.
Offline
Furthermore, if I do "/etc/rc.d/hal restart", it fails at both stopping and starting HAL. dmesg is of no use. Is there some place I could look for logs? I've looked in "/var/log" but can't find anything relevant.
The normal behavior is to run it from a terminal so you can recieve some output. If we check `man hald` we see that there is some options that will help us display some information on the daemon as it runs in the foreground.
--daemon=yes|no
Specify whether to run in the foreground or the background.
--verbose=yes|no
Enable verbose debug output.
So lets try it... as root
hald --daemon=no --verbose=yes
Last edited by jacko (2009-07-19 17:45:27)
Offline
Ho, I just realized I've made a mistake. Hal is running (but automount is still not working for usb drives):
$ ps aux | grep hal
hal 2539 0.0 0.1 28260 5380 ? Ss 19:40 0:00 /usr/sbin/hald
root 2540 0.0 0.0 15664 1248 ? S 19:40 0:00 hald-runner
root 2568 0.0 0.0 17776 1168 ? S 19:40 0:00 hald-addon-input: Listening on /dev/input/event1 /dev/input/event12 /dev/input/event11 /dev/input/event8 /dev/input/event6 /dev/input/event7 /dev/input/event2 /dev/input/event5 /dev/input/event13 /dev/input/event16
root 2586 0.0 0.0 17772 1124 ? S 19:40 0:00 /usr/lib/hal/hald-addon-leds
root 2587 0.0 0.0 17772 1176 ? S 19:40 0:00 /usr/lib/hal/hald-addon-rfkill-killswitch
hal 2612 0.0 0.0 15372 1056 ? S 19:40 0:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event
root 2613 0.0 0.0 17780 1140 ? S 19:40 0:00 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root 2637 0.0 0.0 17772 1116 ? S 19:41 0:00 /usr/lib/hal/hald-addon-generic-backlight
rognon 2744 0.0 0.1 47392 3128 ? Sl 19:41 0:00 /usr/lib/gvfs/gvfs-hal-volume-monitor
root 2985 0.0 0.0 17780 1132 ? S 19:44 0:00 hald-addon-storage: polling /dev/sdb (every 2 sec)
And regarding my keyboard problem, it seem that things are weirder than they seemed. After logging in, if a manually set the layout with "setxkbmap ca -variant fr", change the keyboard shortcuts that use arrows (like move to the workspace on the left) to something that does not uses an arrow (like crtl+alt+m for instance) and then set them back to their original values, it works. This happens in both metacity and compiz.
Offline
Jut solved my keyboard problem. Instead of using Xorg hardware autodetect, I used my properly configured xorg.conf. Could this mean that there might be a problem with xf86-input-evdev?
Offline