You are not logged in.

#1 2009-11-02 19:32:48

yvonney
Member
Registered: 2008-06-11
Posts: 671

ASUS M50 laptop - fixing the PgUp PgDn - help/fix obviously needed

=== written 3rd ===

UPDATE 2: that doesn't seem to do it. (below) Still looking to get the ASUS laptop numberic just right.

=== written 2nd ===
UPDATE: did this then restarted as I could not see keymaps in rc.d. Didn't think much just restarted.
Hoping this solves it... question is: is this the best way, and would xmodmap not do it due to asus pgup pgdn weirdness?


sed -i 's/shift keycode 104/shift keycode 73/g' /usr/share/kbd/keymaps/i386/include/linux-keys-bare.inc
sed -i 's/shift keycode 109/shift keycode 81/g' /usr/share/kbd/keymaps/i386/include/linux-keys-bare.inc
/etc/rc.d/keymaps restart


=== written 1st ===
ASUS laptop doesn't work right with page up and page down on the numeric. Well know, though haven't found a good solution.
Could I use .Xmodmap? I use it already to add a key command and if all else is equal I night prefer to use xmodmap for this.



Searching I found this:


$ sudo sed -i 's/shift keycode 104/shift keycode 73/g' /usr/share/keymaps/i386/include/linux-keys-bare.inc
$ sudo sed -i 's/shift keycode 109/shift keycode 81/g' /usr/share/keymaps/i386/include/linux-keys-bare.inc
$ sudo /etc/init.d/keymaps restart



And also a tip to add this to xorg.conf

Option "XkbOptions" "numpad:microsoft"

Perhaps Ideally something I could manage in my home folder would be best. Is xmodmap ok?

Currently my .Xmodmap is this:
keycode 135 = Super_R NoSymbol Super_R NoSymbol Super_R

Anyone know how to get the keypad to work right?

P.S. the sed lines above don't work outa the box with ARCH of course.

Last edited by yvonney (2009-11-02 21:08:11)

Offline

#2 2009-11-02 20:59:29

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: ASUS M50 laptop - fixing the PgUp PgDn - help/fix obviously needed

I also have a asus m51vr that has a numeric keyboard at the side.
On my desktop pc, selcting SHIFT+PgUp or PgDown i can go back on the tty's and on the console, but on this laptop it does nothing.
A solution would be apreciated since i looked forever for this but ended up quiting.

By the way, since we are at this, anyone knows how to turn on/off the Scr Lk? i do Fn+Scr Lk and it does nothing, no led on/off nor "pause" on the console like the ctrl+s/q... (ok, actually this works on the tty's but not on kde tongue)

Last edited by Diaz (2009-11-02 21:01:26)

Offline

#3 2009-11-02 21:06:14

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: ASUS M50 laptop - fixing the PgUp PgDn - help/fix obviously needed

I now have this (partial)  in:
/usr/share/kbd/keymaps/i386/include/linux-keys.bare.inc

#
keycode 110 = Insert
keycode 102 = Home        # Find
keycode 104 = PageUp        # Prior
keycode 111 = Remove
keycode 107 = End        # Select
keycode 109 = PageDown        # Next
shift keycode 73 = Scroll_Backward
shift keycode 81 = Scroll_Forward
control    alt keycode 111 = Boot
#

Would REALLY like to sort this out as it's been a while. hehehe

@Diaz

um, yep! me too!  HOPING this is the, um....month! :-)

I wonderif there's another command to get PgUp and PgDn, like a shift thing? doubt it though.
Takes a lot to bug me as it's all so fascinating. This one slows us down a lot though.

hey, maybe it does work though we need to add a shift command.  dunno yet.

nope, shift-pgup/pgdn seems to turn on the numeric while shift is held. maybe that did that before.

Last edited by yvonney (2009-11-02 21:12:03)

Offline

#4 2009-11-08 13:40:42

adoroo
Member
Registered: 2009-11-01
Posts: 4

Re: ASUS M50 laptop - fixing the PgUp PgDn - help/fix obviously needed

I think it's better to add "shift keycode 73 = Scroll_Backward" and "shift keycode 81 = Scroll_Forward".
You don't need to touch /usr/share/kbd/keymaps/i386/include/linux-keys-bare.inc; loadkeys does the job.

I added the following to my /etc/rc.local:
loadkeys <<- KM
        shift keycode 73 = Scroll_Backward
        shift keycode 81 = Scroll_Forward
KM

Offline

#5 2009-11-08 13:42:49

adoroo
Member
Registered: 2009-11-01
Posts: 4

Re: ASUS M50 laptop - fixing the PgUp PgDn - help/fix obviously needed

And this is the ~/.xmodmaprc for my M50V notebook:

keycode  81 = Prior KP_9 KP_Prior KP_9 KP_Prior KP_9
keycode  89 = Next KP_3 KP_Next KP_3 KP_Next KP_3
keycode  79 = Home KP_7 KP_Home KP_7 KP_Home KP_7
keycode  87 = End KP_1 KP_End KP_1 KP_End KP_1
keycode  80 = Up KP_8 KP_Up KP_8 KP_Up KP_8
keycode  83 = Left KP_4 KP_Left KP_4 KP_Left KP_4
keycode  85 = Right KP_6 KP_Right KP_6 KP_Right KP_6
keycode  88 = Down KP_2 KP_Down KP_2 KP_Down KP_2
keycode  63 = asterisk XF86_ClearGrab KP_Multiply XF86_ClearGrab KP_Multiply XF86_ClearGrab
keycode  82 = minus XF86_Prev_VMode KP_Subtract XF86_Prev_VMode KP_Subtract XF86_Prev_VMode
keycode  86 = plus XF86_Next_VMode KP_Add XF86_Next_VMode KP_Add XF86_Next_VMode
keycode 106 = slash XF86_Ungrab KP_Divide XF86_Ungrab KP_Divide XF86_Ungrab

EDIT: Ops, No no, I don't load that. I was only a draft. Sorry, ignore this post.

Last edited by adoroo (2009-11-08 13:48:14)

Offline

#6 2009-11-08 18:28:38

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: ASUS M50 laptop - fixing the PgUp PgDn - help/fix obviously needed

Still very helpful adoroo. I'm hoping to understand more of the what this is all about and how our keypads etc. differ or need alterations.
I don't really get what the issue actually is, quite.

And why an addition to xorg.conf as an Option isn't sufficient or perhaps even recommended.

Please let us know more and what your finding/thinking is on this if possible.

QUESTION:  .Xmodmap on my minimalist system works so can I put your code in there? It's PgUp and PgDn that I need to be standard operating.   

running   xev   says that PgUp is keycode 81   and  PgDn   is 89

Also: in my top post above I didn't catch that I was quoteing code for SHIFT-PgUp etc. It was not necessarily the shift part I was interested in.
Though getting everything working 'standardly' is the objective so shift-PgUp is of course of interest.

And! just found your first of two posts. I was only seeing the second one initially. great!

Last edited by yvonney (2009-11-08 18:42:50)

Offline

Board footer

Powered by FluxBB