LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2010, 02:32 PM   #1
rusma
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Rep: Reputation: 0
keymap and keyboard repeat rate is reset by pm-suspend, so HAL does not work (!)


Hi!

I am a newbie on HAL and shellscripting.

I have a Dell Latitude E5400 (laptop). It has got ArchLinux. I have installed most of the packages I need right now and got Xorg working. Or ... I do not know really whats causing the problem. Here a typical sequence of events (the problem):
  1. I install HAL and pm-utils from pacman
  2. HAL is able to start/stop from services
  3. suspend the computer to ram by '# pm-suspend'
  4. wakes it up again by closing/opening the laptop lid
  5. keyboard repeat rate is reset to slow and keymap is reset to us
  6. I have to set keymap and repeat rate manually
  7. cp /usr/share/hal/fdi/policy/examples/10-keymap /usr/share/hal/fdi/policy/
  8. I have edited 'us' in the file to 'no' (Norwegian)
  9. (I have also heard it is possible to change the repeat rate somewhere here - maybe the volume control buttons also)
  10. restart HAL
  11. no difference (it's reset as before)

I remember this all worked fine recently before reinstalling Arch from scratch. I think I maybe have overlooked something.

pm-suspend is triggered by the acpi deamon when the laptop lid is closed.

Does anybody have any clue as to what I should do?
 
Old 04-22-2010, 12:11 AM   #2
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by rusma View Post
Hi!

I am a newbie on HAL and shellscripting.

I have a Dell Latitude E5400 (laptop). It has got ArchLinux. I have installed most of the packages I need right now and got Xorg working. Or ... I do not know really whats causing the problem. Here a typical sequence of events (the problem):
[LIST=1][*]I install HAL and pm-utils from pacman[*]HAL is able to start/stop from services[*]suspend the computer to ram by '# pm-suspend'[*]wakes it up again by closing/opening the laptop lid[*]keyboard repeat rate is reset to slow and keymap is reset to us[*]I have to set keymap and repeat rate manually[*]cp /usr/share/hal/fdi/policy/examples/10-keymap /usr/share/hal/fdi/policy/[*]I have edited 'us' in the file to 'no' (Norwegian)
I don't use suspend so can't help on this part.
Quote:
[*](I have also heard it is possible to change the repeat rate somewhere here - maybe the volume control buttons also)
You don't say which desktop you're using (Kde, Gnome, etc). I can only speak about Kde but any desltop should have a settings menu somewhere. In that you should be able to change the mouse settings.
Quote:
I remember this all worked fine recently before reinstalling Arch from scratch. I think I maybe have overlooked something.

pm-suspend is triggered by the acpi deamon when the laptop lid is closed.

Does anybody have any clue as to what I should do?
If it worked prior to the reinstalling, I would recommend another reinstall, keeping notes of what settings you configure. I've learned from experience to keep a notebook with all settings I change from default (helps in later troubleshooting).

Tom
 
Old 04-22-2010, 12:14 PM   #3
rusma
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you very much for answering.
Quote:
Originally Posted by tommyttt View Post
I don't use suspend so can't help on this part.You don't say which desktop you're using (Kde, Gnome, etc). I can only speak about Kde but any desltop should have a settings menu somewhere. In that you should be able to change the mouse settings
I do not use any desktop in particular, just Xorg with compiz window manager, emerald window decorator, and feh as background (though I have not figured out yet how I can have files on the desktop (like normal DEs)). Everything is started from ~/.xinitrc when I run startx after logging in to console. This is because I do not have much space to spare for a full featured desktop. I'm thinking of maybe switching to Xmonad or Awesome3. I suppose the same problem would appear there. It's the Arch Way I guess
Quote:
If it worked prior to the reinstalling, I would recommend another reinstall, keeping notes of what settings you configure.
Nice suggestion. However, I'm not very good at taking notes of anything (like in math lessons). It is so many small things involving setting up a desktop. However, I have a workstation where I have gone through the ecsactly the same procedure as what I did since last install. They are both x86_64 (or amd64, if you will). Is there some way I could diff the two of them (I am just thinking in a very loud way).

I am really out of suggestions for myself right now.

This is maybe some shorted down version of where I am right now in the process of installing packages and such:
  • Installing arch core system
  • setting up networking (I had to use the propertary broadcom driver for my wireless-N card)
  • mounting ntfs partitions
  • starting to figure out I maybe needing X for writing on OpenOffice and viewing pdf documents
  • installing all of xorg, hal, fdi, compiz, emerald, feh, nice font libraries etc. ...
  • Trying to configure HAL <<<<I'm here
  • startx
  • doing computer activities
  • sleeping (maybe with pm-suspend)
  • waking it up again (as described prevously)
  • becoming frustrated becuse HAL does not work ('I can't let you do that ... ' - HAL)
 
  


Reply

Tags
hal, rate, xset



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lnx_io.c:Unable to set the keyboard repeat rate using KIOCSRATE busi007 Linux - Newbie 0 07-09-2008 01:11 AM
How do I adjust keyboard repeat rate? KenJackson Linux - Software 2 06-14-2008 04:38 PM
keyboard repeat rate joshknape Mandriva 1 11-03-2005 07:46 PM
Easy question: how do I adjust the keyboard repeat rate? aweir14150 Mandriva 1 05-29-2004 12:18 PM
VMware 3.0 insane keyboard repeat rate marktaff Linux - General 1 02-23-2002 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration