Even though this title suggest it’s for peakago linux, it’s main focus is about how to configure the iio sensor for the correct screen rotation.

Software:

ubuntu

Peakago Windows 10 drivers (drivers)

Gathering Information:

First thing we need to do is gather the information we need to create a string similar to this
sensor:modalias:acpi:[driver name]*:dmi:*:svn[Manufacturer]*:pn[Product Name]:*
to find the driver name we need to issue this command
udevadm info -n /dev/iio:device0
in our case: BOSC0200 now we will need to find the manufacturer
dmidecode | grep Manufacturer
and lastly the product
dmidecode | grep Product
with all that information gathered we can now put things together.

Lets put things together:

we first need to create a file called “61-sensor-local.hwdb” this way we wont accidently edit the 60-sensor file.

sudo nano /lib/udev/hwdb.d/61-sensor-local.hwdb

and in that file we create the string we need

sensor:modalias:acpi:BOSC0200*:dmi:*:svnPeakago*:pnDefaultstring:*

followed by a new line of the correct rotation matrix

sensor:modalias:acpi:BOSC0200*:dmi:*:svnPeakago*:pnDefaultstring:*
ACCEL_MOUNT_MATRIX=-1,0,0;0,1,0;0,0,1

now we can issue this command to update the hwdb

sudo udevadm hwdb --update

once everything is in place, we can now reboot.

Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.

Firefox touchscreen scrolling fix

For touch scrolling to work with firefox there is a setting we will need to enable “MOZ_USE_XINPUT2=1”. now there are two ways to enable this feature. one is to start the program in termal with

env MOX_USE_XINPUT2=1 firefox

and the second which i recommend is to make it system wide on boot.

edit:

/etc/security/pam_env.conf

add this line

MOZ_USE_XINPUT2 DEFAULT=1

lastly if you want to have two finger scroll instead of one you can change this option inside firefox in the about:config

and edit this

dom.w3c_touch_events.enabled=1

default is 2