[opensuse] display hal events
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The keyboard on my workstation has a sleep/suspend key. I'd like to remap it, but so far my attempts are failing. When I xmodmap the keycode 222 issued by that key to some other function, it still pushes through a shutdown signal to opensuse (10.2) which happily responds and shuts down my Ultra 40 without even prompting for a confirmation. It's not simply being handled by init, either (though I did try changing the 'ca' id to something else). I can tell that kde itself is responding to this signal. If I leave a kde specific app open, like kate, with an unsaved file, then I press the sleep/suspend key, kate prompts me to save the file. If I instead hit the cancel button, kde briefly pops up a small modal dialog box: KDE Systems Notification - ------------------------- Logout canceled by 'kate' I tried editing some of the /etc/PolicyKit/privilege.d/hal-power-* files to alter permissions to see if I could disable the response to that key, but no luck. Is there some way I can view hal events similarly to the way xev displays X events? That might help me isolate exactly what I need to change. - -- Andy Harrison public key: 0x67518262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHH0QNNTm8fWdRgmIRAv/dAJ0XZBUAc2PCCHqHETQpGKlcqpKzRACg8tlF 5ohYSFC4wkSiIhC2R4a/oqg= =uCFx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-10-24 at 09:09 -0400, Andy Harrison wrote:
Is there some way I can view hal events similarly to the way xev displays X events? That might help me isolate exactly what I need to change.
lshal --monitor -JP -- JP Rosevear <jpr@novell.com> Novell, Inc. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/24/07, JP Rosevear wrote:
lshal --monitor
That did the trick. It showed me the following: usb_device_430_a2_noserial_if0_logicaldev_input condition ButtonPressed = power I'm not too familiar with hal. What can I do with this info to change the behavior of this keyboard button? (1147)[4:16pm] > lshal -l -u /org/freedesktop/Hal/devices/usb_device_430_a2_noserial_if0_logicaldev_input udi = '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial_if0_logicaldev_input' linux.device_file = '/dev/input/event2' (string) button.has_state = false (bool) input.product = 'Sun USB Keyboard' (string) info.capabilities = {'input', 'input.keyboard', 'button'} (string list) info.udi = '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial_if0_logicaldev_input' (string) linux.subsystem = 'input' (string) linux.hotplug_type = 2 (0x2) (int) info.product = 'Sun USB Keyboard' (string) linux.sysfs_path = '/sys/class/input/input2/event2' (string) info.addons = {'hald-addon-keyboard'} (string list) button.type = '' (string) info.category = 'input' (string) input.physical_device = '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial_if0' (string) input.device = '/dev/input/event2' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial_if0' (string) - -- Andy Harrison public key: 0x67518262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHH6i4NTm8fWdRgmIRAhVGAJ9g+AkJ5mAtF8CFHrFIn+SvD68knQCfd2SD KJRps/NYipm0mLrAlRprTPY= =yUHT -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/24/07, Andy Harrison wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The keyboard on my workstation has a sleep/suspend key. I'd like to remap it, but so far my attempts are failing. When I xmodmap the keycode 222 issued by that key to some other function, it still pushes through a shutdown signal to opensuse (10.2) which happily responds and shuts down my Ultra 40 without even prompting for a confirmation.
Just for the list archive... I just inadvertently figured out this issue of pressing the sleep/suspend (moon) button on my sun type 7 keyboard and having it shut the machine down without a confirmation dialog. Go to Configure Desktop -> Display -> Power Control tab -> Configure KPowersave -> General Settings tab -> Button Events I changed the selection for Power Button, problem solved. - -- Andy Harrison public key: 0x67518262 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHK3L7NTm8fWdRgmIRAsVMAJ9fOIypJSBaXiUHE6j/LUsHUHaAeQCaA17o xk/KFCXLhovcwHIXZaQPcfk= =hFni -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Andy Harrison
-
JP Rosevear