Supporting components for Linux on a Panasonic Toughbook CF-19

For any kind of software.
Post Reply
User avatar
zero cool
Site Admin
Posts: 287
Joined: Fri Apr 19, 2024 9:40 am
Location: The sea of meatballs
Gopher: gopher.deadnet.se
IRC: zero_cool @ irc.libera.chat
Jabber: zerocool@5222.de
Contact:

Supporting components for Linux on a Panasonic Toughbook CF-19

Post by zero cool »

Since it was a bit of an adventure in pain and stabbing to get this working, due to conflicting and obscure information, I figured I'd document it here.

I'm running Debian 12.9 with xfce on mine. Your suffering may vary.

Audio
To be fixed still. Headphone output works, but nothing from the speaker.

Apparently this fix should work, but I've not had any luck:
Edit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf

Change

Code: Select all

[Element Headphone]
switch = off
volume = off
to

Code: Select all

[Element Headphone]
switch = off
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
And change

Code: Select all

[Element Speaker]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
to

Code: Select all

[Element Speaker]
required-any = any
switch = mute
volume = off

Touch
Works out of the box, but cannot be calibrated with xinput_calibrator.

This is due to the touch panel not being correctly detected by the software, and produces a seemingly functional result, but is in fact broken. To fix this, do the following:

Code: Select all

sudo apt install xserver-xorg-input-evdev
sudo apt remove xserver-xorg-input-libinput
You can then run xinput_calibrator and follow its steps accordingly.


Tablet buttons
These are the buttons on the left front edge of the computer.

Do

Code: Select all

sudo apt install git make build-essential dbus-x11 dconf-editor dconf-service

Code: Select all

git clone https://github.com/cyberpunkcoder/panasonic-hbtn

cd panasonic-hbtn

make clean

make all

make install

Code: Select all

cd /usr/local/bin/
Edit rotate-screen.sh and change "TouchscreenDevice='<devicename>' " to what your touch panel is named in the system. You can just pick it from the lsusb output. In my case it's Fujitsu Component Limited USB Touch Panel, so the string in the script would be:
TouchscreenDevice='Fujitsu Component Limited USB Touch Panel'


The tablet buttons should now work as regular keyboard keys, meaning you can create new keyboard shortcuts to run the rotate-screen script, open a virtual keyboard (I installed onboard for this) or make them trigger whatever you like.


In case the github with the tablet button stuffs were to go down, I thought I'd put a copy of it here as well.
panasonic-hbtn-master.zip
(5.16 KiB) Downloaded 31 times
Everything is a smoke machine if you operate it wrong enough.
Main site
deadnet.se
Post Reply