Page 3 of 8

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

Posted: Fri Jun 03, 2016 8:24 am
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]

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

Posted: Tue Jun 07, 2016 10:36 am
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.

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

Posted: Tue Jun 07, 2016 1:18 pm
by Karl Klammer
<scnr><troll>
you could unlock download #7 by porting it to bsd ;-)
</troll></scnr>

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

Posted: Wed Jun 08, 2016 6:03 am
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

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

Posted: Wed Jun 08, 2016 12:19 pm
by Karl Klammer
;-)

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

Posted: Wed Jun 08, 2016 12:42 pm
by Shawn
I am guessing that was on the last day of that job and his bosses PC.

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

Posted: Wed Jun 15, 2016 1:02 pm
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:

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

Posted: Wed Jun 15, 2016 8:53 pm
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.

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

Posted: Thu Jun 16, 2016 1:27 pm
by Shawn
:rofl:

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

Posted: Fri Jun 17, 2016 9:12 am
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.