A quest, get the CF-19 front keys working!
- 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!
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]
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]
- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
Re: A quest, get the CF-19 front keys working!
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.
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
- 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!
<scnr><troll>
you could unlock download #7 by porting it to bsd ;-)
</troll></scnr>
you could unlock download #7 by porting it to bsd ;-)
</troll></scnr>
- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
Re: A quest, get the CF-19 front keys working!
Arrrrrright then. Give me a moment to load it on my dev system.Karl Klammer wrote:<scnr><troll>
you could unlock download #7 by porting it to bsd ;-)
</troll></scnr>




Daily drives a CF-31
- 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!
I am guessing that was on the last day of that job and his bosses PC.
Life will beat you into submission.
-
- Posts: 71
- Joined: Thu Apr 03, 2014 2:28 pm
Re: A quest, get the CF-19 front keys working!
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.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.
Brightness keys have always worked and the "enter" button seems to work (though I'm not sure what use it is). Otherwise,

- kode-niner
- Posts: 700
- Joined: Sat Jun 07, 2014 7:39 am
- Location: Canada
Re: A quest, get the CF-19 front keys working!
I presume xubuntu runs XFCE, so try select xfce-keyboard-shortcuts and hit the New button to create one for the rotate button.
Assign command to string value
Let me know if xfce4-settings-editor isn't found or if you're running another window manager.
Code: Select all
xfce4-settings-editor
Assign command
Code: Select all
XF86RotateWindows
Code: Select all
/usr/local/bin/rotate
He was fired because his monthly sales reports were full of baloney.Shawn wrote:I am guessing that was on the last day of that job and his bosses PC.
Daily drives a CF-31
-
- Posts: 71
- Joined: Thu Apr 03, 2014 2:28 pm
Re: A quest, get the CF-19 front keys working!
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.kode-niner wrote:I presume xubuntu runs XFCE, so tryselect xfce-keyboard-shortcuts and hit the New button to create one for the rotate button.Code: Select all
xfce4-settings-editor
Assign commandto string valueCode: Select all
XF86RotateWindows
Let me know if xfce4-settings-editor isn't found or if you're running another window manager.Code: Select all
/usr/local/bin/rotate