A quest, get the CF-19 front keys working!

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Message
Author
User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: A quest, get the CF-19 front keys working!

#21 Post by Karl Klammer »

Ed, I believe that it should work for cf18 as well, based upon a quick glance at the code.

https://github.com/heiher/panasonic-hbt ... nic-hbtn.c file states:
MODULE_DESCRIPTION("ACPI Tablet Button driver for Panasonic CF-18/19 laptops");

There is no differentiation between cf18/19 in the code. It uses the same keymap for everything:
[code]static const struct key_entry panasonic_keymap[] = {
{ KE_KEY, 0x0, { KEY_RESERVED } },
{ KE_KEY, 0x4, { KEY_SCREENLOCK } }, /* Screen lock */
{ KE_KEY, 0x6, { KEY_DIRECTION } }, /* Screen rotate */
{ KE_KEY, 0x8, { KEY_ENTER } }, /* Enter */
{ KE_KEY, 0xA, { KEY_KEYBOARD } }, /* Soft keyboard */
{ KE_END, 0 }
};[/code]

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: A quest, get the CF-19 front keys working!

#22 Post by kode-niner »

That's right. If anybody tried my script, please report here. I noticed there's a measly 6 downloads on it so far.

It would help if we could do a follow-up discussion on how to assign the rotate script to the buttons with common hotkey config utils.
Daily drives a CF-31

User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: A quest, get the CF-19 front keys working!

#23 Post by Karl Klammer »

<scnr><troll>
you could unlock download #7 by porting it to bsd ;-)
</troll></scnr>

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: A quest, get the CF-19 front keys working!

#24 Post by kode-niner »

Karl Klammer wrote:<scnr><troll>
you could unlock download #7 by porting it to bsd ;-)
</troll></scnr>
Arrrrrright then. Give me a moment to load it on my dev system.

Image





:D :boing: :D
Daily drives a CF-31

User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: A quest, get the CF-19 front keys working!

#25 Post by Karl Klammer »

;-)

User avatar
Shawn
Posts: 2960
Joined: Fri Jan 18, 2013 11:35 am

Re: A quest, get the CF-19 front keys working!

#26 Post by Shawn »

I am guessing that was on the last day of that job and his bosses PC.
Life will beat you into submission.

EdFromBJCS
Posts: 71
Joined: Thu Apr 03, 2014 2:28 pm

Re: A quest, get the CF-19 front keys working!

#27 Post by EdFromBJCS »

kode-niner wrote:That's right. If anybody tried my script, please report here. I noticed there's a measly 6 downloads on it so far.

It would help if we could do a follow-up discussion on how to assign the rotate script to the buttons with common hotkey config utils.
I tried it with my CF-18KHHMXBM running Xubuntu 16.04. Typing "rotate" in the CLI worked. I'm still not sure how to assign functions to the front keys, though.

Brightness keys have always worked and the "enter" button seems to work (though I'm not sure what use it is). Otherwise, :reallysad:

User avatar
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

Re: A quest, get the CF-19 front keys working!

#28 Post by kode-niner »

I presume xubuntu runs XFCE, so try

Code: Select all

xfce4-settings-editor
select xfce-keyboard-shortcuts and hit the New button to create one for the rotate button.

Assign command

Code: Select all

XF86RotateWindows
to string value

Code: Select all

/usr/local/bin/rotate
Let me know if xfce4-settings-editor isn't found or if you're running another window manager.

Shawn wrote:I am guessing that was on the last day of that job and his bosses PC.
He was fired because his monthly sales reports were full of baloney.
Daily drives a CF-31

User avatar
Shawn
Posts: 2960
Joined: Fri Jan 18, 2013 11:35 am

Re: A quest, get the CF-19 front keys working!

#29 Post by Shawn »

:rofl:
Life will beat you into submission.

EdFromBJCS
Posts: 71
Joined: Thu Apr 03, 2014 2:28 pm

Re: A quest, get the CF-19 front keys working!

#30 Post by EdFromBJCS »

kode-niner wrote:I presume xubuntu runs XFCE, so try

Code: Select all

xfce4-settings-editor
select xfce-keyboard-shortcuts and hit the New button to create one for the rotate button.

Assign command

Code: Select all

XF86RotateWindows
to string value

Code: Select all

/usr/local/bin/rotate
Let me know if xfce4-settings-editor isn't found or if you're running another window manager.
Huh. The settings editor was found, but the new button I tried to create did not work. I think I have to take a few steps back. Just ran acpi_listen and the only front keys that returned an output were the brightness keys.

Post Reply

Return to “The LINUX forum!!!”