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
kode-niner
Posts: 700
Joined: Sat Jun 07, 2014 7:39 am
Location: Canada

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

#51 Post by kode-niner »

EdFromBJCS wrote:Okay. I had to look up how to get to the grub menu, but I have now successfully (I think) booted with the latest kernel.
Let's make sure

Code: Select all

uname -a
If you are running the latest 4.4.0.24, did the make fail again?
Daily drives a CF-31

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

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

#52 Post by EdFromBJCS »

I think so.

Code: Select all

ed@ed-CF-18KHHMXBM:~$ uname -a
Linux ed-CF-18KHHMXBM 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:25:16 UTC 2016 i686 i686 i686 GNU/Linux
ed@ed-CF-18KHHMXBM:~$ cd panasonic-hbtn
ed@ed-CF-18KHHMXBM:~/panasonic-hbtn$ make
make -C /lib/modules/4.4.0-24-generic/build M=/home/ed/panasonic-hbtn modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-24-generic'
rm: cannot remove '/home/ed/panasonic-hbtn/.tmp_versions/panasonic-hbtn.mod': Permission denied
Makefile:1389: recipe for target 'crmodverdir' failed
make[1]: *** [crmodverdir] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-24-generic'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2
ed@ed-CF-18KHHMXBM:~/panasonic-hbtn$ sudo make
[sudo] password for ed: 
make -C /lib/modules/4.4.0-24-generic/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-24-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'.  Stop.
arch/x86/Makefile:199: recipe for target 'archheaders' failed
make[1]: *** [archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-24-generic'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2
ed@ed-CF-18KHHMXBM:~/panasonic-hbtn$ 

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!

#53 Post by kode-niner »

Although we are not building a kernel, try installing the linux-source package anyway. (as usual, run a root shell or prefix commands with sudo)

Code: Select all

apt-get install linux-source
Then try a make.

If that doesn't work, frankly I am running out of ideas. I'd suggest re-installing the kernel and headers.

Code: Select all

apt-get update
apt-get install --reinstall linux-headers-4.4.0-24 linux-image-4.4.0-24
Throw in a full upgrade for good measure:

Code: Select all

apt-get upgrade
Then reboot and try the make again. :confused:
Daily drives a CF-31

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

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

#54 Post by EdFromBJCS »

I'm thinking I'll just wipe the hard drive and start over from scratch.

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!

#55 Post by kode-niner »

Before you do, try this version and run a make in it. I modified the Makefile a bit.
Attachments
panasonic-hbtn.zip
(3.92 KiB) Downloaded 475 times
Daily drives a CF-31

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

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

#56 Post by EdFromBJCS »

kode-niner wrote:Before you do, try this version and run a make in it. I modified the Makefile a bit.
Gave it a shot, and it didn't work, but then I noticed it was saying something about /lib/modules/4.4.0-24-lowlatency/build not existing, so I looked into it and it didn't exist (duh), but /lib/modules/4.4.0-24-generic/build did exist. So I booted into the grub menu and told it to load 4.4.0-24-generic (I guess it had been loading the low latency kernel for some reason). aaaaannnnnd....

Code: Select all

ed@ed-CF-18KHHMXBM:~/panasonic-hbtn$ make
make -C /lib/modules/4.4.0-24-generic/build M=/home/ed/panasonic-hbtn modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-24-generic'
  CC [M]  /home/ed/panasonic-hbtn/panasonic-hbtn.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/ed/panasonic-hbtn/panasonic-hbtn.mod.o
  LD [M]  /home/ed/panasonic-hbtn/panasonic-hbtn.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-24-generic'
ed@ed-CF-18KHHMXBM:~/panasonic-hbtn$ 
Is that good? I don't see the word "error" anywhere.

Ran ./install.sh (not sure if that was necessary) then ran xev and among the many lines it returned was

Code: Select all

state 0x0, keycode 161 (keysym 0x1008ff74, XF86RotateWindows), same_screen YES
So that's a good sign, right?

Still can't seem to get the keyboard shortcut assigned in the settings editor, though.

edit: Did it! Instead of going into the settings editor, I opened up the XFCE menu and picked Keyboard from the settings sub-menu. Then I tabbed over to Application Shortcuts, clicked the Add button, navigated to the rotate file and clicked OK. Then, when it prompted me, I pushed the rotate button to assign it to the command. Yeehaw!
Screenshot_2016-07-12_12-19-44.png
Screenshot_2016-07-12_12-19-44.png (162.83 KiB) Viewed 18272 times
Now I just need to get the on-screen keyboard and lock buttons to work.

edit: assigning the lock button was no big deal. Don't think the computer recognizes the keyboard button.

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!

#57 Post by kode-niner »

That's great!

Your installation is weird, though. I still suggest you try a full upgrade or dist-upgrade to try and regularize your kernel and headers packages... or start from scratch, maybe with another distro. All this balderdash shouldn't be part of your tutorial.
Daily drives a CF-31

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

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

#58 Post by EdFromBJCS »

Agreed. Still a useful learning experience.

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

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

#59 Post by EdFromBJCS »

Once I started over, the process had far fewer hiccups. Tutorial finished: https://www.youtube.com/watch?v=oGDilnSzzEk

Thanks for the help!

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!

#60 Post by kode-niner »

Good job! One thing though, it is not necessary to run a make. The install.sh script does that already. We only ran that command separately here for troubleshooting.
Daily drives a CF-31

Post Reply

Return to “The LINUX forum!!!”