LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-02-2009, 02:03 AM   #1
aurostre
LQ Newbie
 
Registered: Aug 2009
Location: Thousand Oaks, California
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Slackware Keycodes! Fun to be had!


So after the switch to 13.0 I found out that X cannot handle keycodes over 255.

Well my macbook's FN key, according to various other sites, pushes out a 464 keycode. Because of this my lappy keeps getting stuck at starting X. Returns an error telling me it's unable to handle the keycode 464. How can I remap this so that it's under 255?

Thanks in advance.

Oh, and the FN key works in console, just when running up X does it freeze and give me the error in /var/log/Xorg.0.log.

Last edited by aurostre; 09-02-2009 at 02:04 AM.
 
Old 09-02-2009, 10:54 AM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
With the new release of Xorg I stated all my old keycodes don't work and xev output isn't reliable. I had to use xmodmap -pke command to determine the appropriate keycodes. Just try it. Maybe it'll be helpful in your case too.
 
Old 09-02-2009, 04:41 PM   #3
aurostre
LQ Newbie
 
Registered: Aug 2009
Location: Thousand Oaks, California
Distribution: Slackware
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by w1k0 View Post
With the new release of Xorg I stated all my old keycodes don't work and xev output isn't reliable. I had to use xmodmap -pke command to determine the appropriate keycodes. Just try it. Maybe it'll be helpful in your case too.
That prints out a long list, which I'm guessing is a list of all my mapped keys and what the translation of them are for the system.

But what can I do with that? If my system is crashing because of a 464 keycode, how can I force my computer to get a different keycode or expand my range past 255??
 
Old 09-02-2009, 06:11 PM   #4
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
You can try to find on that list the events you're interested in and assign keycodes with keysyms using ~/.Xmodmap file. Then you can put xmodmap ~/.Xmodmap command into ~/.xinitrc file and use these keys in X Window.

As I know Xorg is limited to 255 keycodes. I don't know if there's any method to map higher keycodes to the range acceptable by Xorg.
 
  


Reply



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
The Big, Silly, Just for Fun, Slackware 13. Release Day Sweep-stakes.... GazL Slackware 452 09-27-2009 08:34 AM
The Big, Silly, Just for Fun, Slackware 13.1 Release Day Sweep-stakes.... Cotobear Slackware 4 08-29-2009 05:09 AM
wxWidgets keycodes to X Keycodes LonelyStar Programming 0 09-23-2007 10:04 AM
<fun> The Windows Crash </fun> Simon Bridge General 6 08-26-2007 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:32 PM.

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