Jump to content

Deviceinfo dev touchscreen: Difference between revisions

From postmarketOS Wiki
Alexsin (talk | contribs)
Alexsin (talk | contribs)
Line 22: Line 22:
   pmbootstrap flasher boot_kernel
   pmbootstrap flasher boot_kernel


=== Initramfs #3 (you don't need to connect) ===
=== Easy method (you don't need to connect) ===
* Turn on your device and open any file manager, for example, Total Commander
* Turn on your device and open any file manager, for example, Total Commander
* Go to <code>/dev/input</code> directory
* Go to <code>/dev/input</code> directory

Revision as of 06:52, 7 January 2019

This page is about deviceinfo_dev_touchscreen from the deviceinfo file.

How to find the touchscreen device name?

Initramfs #1 (fastest)

  • Connect to your initramfs via telnet
  • Run ls /dev/input
  • For each device in there, do the following:
    • Run cat /dev/input/$device
    • Tap on the screen and see if you get any output
    • The device where you get output is the touch screen

Initramfs #2

  • Connect to your initramfs via telnet
  • Run ls /dev/input
  • Try out one after another:
    • Change deviceinfo_dev_touchscreen in your deviceinfo
    • Rebuild the deviceinfo package, initramfs and flash:
 pmbootstrap checksum device-nokia-rx51
 pmbootstrap build --force device-nokia-rx51
 pmbootstrap initfs # rebuild initramfs
 pmbootstrap flasher boot_kernel

Easy method (you don't need to connect)

  • Turn on your device and open any file manager, for example, Total Commander
  • Go to /dev/input directory
  • For each device in there, try to remove it one by one.
  • When the touch screen stops working, it means that the device you just deleted is the touch screen.
  • To fix the touch screen, reboot the device.

Flashing system + libinput list-devices

Alternatively, run pmbootstrap install --no-fde and flash the system partition again. The initramfs will boot through without asking you for a password (because you disabled encryption). Then you can use the program libinput list-devices to get the list of devices - with probably more useful names.

When you have the right device name, put it into your deviceinfo (as outlined above), then re-flash the encrypted system image. It should work now.