LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2010, 03:00 AM   #16
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940

Put the following keywords in Google and hit enter !
Quote:
download kbd tar

Last edited by Aquarius_Girl; 09-03-2010 at 03:17 AM.
 
Old 09-03-2010, 07:00 AM   #17
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by anishakaul View Post
Put the following keywords in Google and hit enter !
Okay, I found a keyboard util package at http://www.kernel.org/pub/linux/utils/kbd/. I still have to see if it will compile, but if it does, that should be what I need. Thanks for the help (and being patient with me)!
 
Old 09-03-2010, 07:02 AM   #18
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Hey listen, I don't know whether Puppy uses RPM or DEB. You must be knowing, search for an RPM or a DEB instead, installation will be easier then !
 
Old 09-03-2010, 07:36 AM   #19
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by anishakaul View Post
Hey listen, I don't know whether Puppy uses RPM or DEB. You must be knowing, search for an RPM or a DEB instead, installation will be easier then !
Actually, Puppy uses its own format: basically a tar with a checksum appended. The Puppy kbd package doesn't contain what I need (only loadkeys and some keymaps). Besides, I compile almost everything from the source anyway.

By the way, I will be out of town for a few days, so I won't be able to try it until I get back. I should reply back in a few days about how it goes, though.
 
Old 09-05-2010, 05:06 PM   #20
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-05-2011, 02:38 PM   #21
hda7
Member
 
Registered: May 2009
Distribution: Debian wheezy
Posts: 252

Original Poster
Rep: Reputation: 31
After an investigation of Linux ioctls, I found
Code:
ioctl(STDIN_FILENO, KDSKBMODE, mode)
where mode is K_RAW for scancodes, K_MEDIUMRAW for keycodes, and K_XLATE for ascii (or whatever the keycodes are translated into). Apparently this is what kbd_mode calls.

I also discovered (the hard way) that since the key combinations to switch virtual terminals are processed between the keycode and ascii stages, they do not work in keycode mode. I was able to make a showkey replacement program that seems to work (see Missing showkey in Puppy 400).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
IR Remote: Keycodes but no scancodes? polemon Linux - Hardware 6 04-11-2013 06:46 PM
[SOLVED] Access Generic Netlink from userspace yaplej Programming 4 11-10-2012 02:16 AM
wxWidgets keycodes to X Keycodes LonelyStar Programming 0 09-23-2007 10:04 AM
Raw access to devices RichardS Programming 8 07-19-2007 10:27 AM
Raw Drive Access? MikeyG79 Linux - Hardware 1 07-15-2007 09:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:55 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