Choose style:

Author Topic: Peppermint 9 Lenovo Miix 320  (Read 333 times)

0 Members and 1 Guest are viewing this topic.

Offline fra

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Peppermint 9 Lenovo Miix 320
« on: July 03, 2018, 11:50:18 am »
Hi,

I had some trouble booting after the installation, but I read in a forum on peppermintos.com, that USB-Sticks with multiple boot systems cause trouble, so I formatted it and only put Peppermint on it.

I am just getting started, but I have already noticed, that the click on the trackpad doesn't work and I read in this tutorlail: https://esc.sh/blog/linux-on-lenovo-miix-320/ there is this command on ubuntu to rotate the touchscreen with the screen: xinput set-prop "your device id here" 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1.  What would that be on Peppermint?  I managed to rotate the screen, but then the Touchscreen is rotated, ie when I touch the bottom left corner the cursor pops up in the bottom right corner because the screen is in portrait mode by default.  Of course it would be nice to have an autorotation, but just having the Touchscreen fit the screen would already be nice.

While I'm at it, disabling the touchpad while typing would be nice too.  The Ubuntu tutorial gives this command: syndaemon -i 0.5 -t -K -d.  What is that in Peppermint?

Thank you for your advice.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 20976
  • Karma: 2366
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 Respin & 9 Alpha
Re: Peppermint 9 Lenovo Miix 320
« Reply #1 on: July 03, 2018, 12:14:24 pm »
Touchpad "Tap-to-Click" (assuming you have a synaptics touchpad) can be enabled/disabled in

Menu > Settings > Peppermint Control Center > Keyboard & Pointer (tab)

And any commands that work in Ubuntu 18.04 should theoretically work in Peppermint 9 .. Peppermint 9 is based on Ubuntu 18.04.



BTW, welcome to the forum :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline fra

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Peppermint 9 Lenovo Miix 320
« Reply #2 on: July 04, 2018, 02:59:35 pm »
I figured out how to rotate the touchscreen:

With the xinput --list I figured out (or really just guessed) that my touchscreen has id=12 and so I started playing around with the command

xinput set-prop 12 'Coordinate Transformation Matrix' with the following matrices

0 -1 1 1 0 0 0 0 1
-1 0 1 0 -1 1 0 0 1
0 1 0 -1 0 1 0 0 1

until I got it to work.  I guess there is a more logical approach to rotating the touchscreen, but I was trying to figure it out so I just tried it to see what happens.

Enabling the Tap-to-Click in the Peppermint Control Center hasn't yet worked although it seems to be a Synaptics HTX HID. Maybe I'll start fiddling with the threshholds on the xinput set-ptr-feedback command.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 20976
  • Karma: 2366
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 Respin & 9 Alpha
Re: Peppermint 9 Lenovo Miix 320
« Reply #3 on: July 04, 2018, 06:25:14 pm »
what's the output from:
Code: [Select]
xinput --list
and do you know if tap-to-click works in any other 18.04 based distro ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline fra

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Peppermint 9 Lenovo Miix 320
« Reply #4 on: July 09, 2018, 04:16:22 pm »
All right, so I managed to rotate the greeter and the touchscreen.  The only thing I'm still trying to get figured out is the tap-to-click, before I can seriously start working with this Computer.  I'll get the other things figured out, when I need them.

I used lightdm as follows:
Code: [Select]
$ sudo nano /etc/lightdm/lightdm.conf
and added
Code: [Select]
greeter-setup-script=/etc/lightdm/greeeter_setup.sh
Then I opened this file with

Code: [Select]
sudo nano /etc/lightdm/greeter_setup.sh

and wrote the following script:

Code: [Select]
#!/bin/bash
xrandr -o right
xinput set-prop "12" (i.e. the id of the touchscreen) --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
exit 0

There might be a more elegant way for people who know what they're doing.

I just wanted to add that after modifying the lightdm.conf file and before rebooting you should type in the following command to make it executable:
Code: [Select]
sudo chmod +x /etc/lightdm/greeter_setup.sh 
« Last Edit: Today at 02:50:29 pm by fra, Reason: Encapsulating output with [code] »

Offline fra

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Peppermint 9 Lenovo Miix 320
« Reply #5 on: July 09, 2018, 04:23:32 pm »
By the way, the output of xinput --list is:

Code: [Select]
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)]
⎜   ↳ Logitech M705                            id=9 [slave  pointer  (2)]
⎜   ↳ HTX USB HID Device HTX HID Device        id=10 [slave  pointer  (2)]
⎜   ↳ HTX USB HID Device HTX HID Device Touchpad id=11 [slave  pointer  (2)]
⎜   ↳ FTSC1000:00 2808:1015                    id=12 [slave  pointer  (2)]
⎣ Virtual core keyboard                    id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard              id=5 [slave  keyboard (3)]
    ↳ Power Button                            id=6 [slave  keyboard (3)]
    ↳ Video Bus                                id=7 [slave  keyboard (3)]
    ↳ Power Button                            id=8 [slave  keyboard (3)]
    ↳ gpio-keys                                id=13 [slave  keyboard (3)]
    ↳ gpio-keys                                id=14 [slave  keyboard (3)]
« Last Edit: July 09, 2018, 09:15:52 pm by AndyInMokum, Reason: Encapsulating output with [code] »

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4676
  • Karma: 977
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Peppermint 9 Lenovo Miix 320
« Reply #6 on: July 09, 2018, 09:18:02 pm »
Hi fra, Welcome to the Peppermint Forum, it's very nice to meet you  :).   For future reference, could you please remember to encapsulate all terminal outputs with the Insert, Code # function.  For extra long outputs, please use the Spoiler, Sp function.  If you’re a Chromium Browser and/or a Google Chrome user, please don't combine these functions.  For some reason, they don’t work well together with these browsers.  Only use one or the other  ;).  These forum functions preserve the original format of the output.  This makes it easier for future visitors to relate to their own issues.  These functions are found in the forum editor, above the,  :-[ Embarrassed and  the :'( Cry emoticon respectively.  Use the Preview button to check how it'll look in the forum.  This time, I've done it for you - many thanks  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline pin

  • Trusted User
  • Member
  • *****
  • Posts: 956
  • Karma: 107
  • Peppermint + awesome wm
    • View Profile
  • Peppermint version(s): Peppermint 9 (64bit)
Re: Peppermint 9 Lenovo Miix 320
« Reply #7 on: July 10, 2018, 04:15:48 pm »
Regarding the tap-to-click...
Do you have xf86-input-synaptics installed?
Check it's configuration, https://wiki.debian.org/SynapticsTouchpad#Override_options_in_.2Fetc.2FX11.2Fxorg.conf.d.2Fsynaptics.conf

Skickat från min SM-G900F via Tapatalk


Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 20976
  • Karma: 2366
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 Respin & 9 Alpha
Re: Peppermint 9 Lenovo Miix 320
« Reply #8 on: July 10, 2018, 05:43:52 pm »
What's the output from:
Code: [Select]
xinput --list-props 11
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pin

  • Trusted User
  • Member
  • *****
  • Posts: 956
  • Karma: 107
  • Peppermint + awesome wm
    • View Profile
  • Peppermint version(s): Peppermint 9 (64bit)
Re: Peppermint 9 Lenovo Miix 320
« Reply #9 on: July 11, 2018, 06:09:22 am »
Ubuntu 18.04 doesn't have input-synaptics on the base install, but it has libinput.

EDIT2: Although, it's on my Peppermint 9 system,... just checked my drivers  :)

Now,here at home there are three laptops. Two of those are fine with just libinput, but on the third one tap-to-click, while working on the 16.04 base (Bodhi linux 4.5), did not function on the 18.04 base (Bohdi linux 5.0)
Installing input-synaptics.
Code: [Select]
sudo apt-get install xserver-xorg-input-synaptics
and rebooting fixed the issue.

https://manpages.debian.org/stretch/xserver-xorg-input-synaptics/synaptics.4.en.html

EDIT: Do not remove libinput or you may loose your keyboard and mouse. There's a work around, but you might as well have both installed, libinput and synaptics don't seem to conflict, at least they have co-existed on my Void linux install without any issues for over one year.
« Last Edit: July 11, 2018, 06:50:24 am by pin »

Offline fra

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Peppermint 9 Lenovo Miix 320
« Reply #10 on: July 13, 2018, 03:25:56 pm »
The output from:
Code: [Select]
xinput --list-props 11

is

Spoiler (click here to view / hide)
Device 'HTX USB HID Device HTX HID Device Touchpad':
   Device Enabled (140):   1
   Coordinate Transformation Matrix (142):   1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
   Device Accel Profile (273):   1
   Device Accel Constant Deceleration (274):   2.500000
   Device Accel Adaptive Deceleration (275):   1.000000
   Device Accel Velocity Scaling (276):   12.500000
   Synaptics Edges (365):   48, 1166, 43, 762
   Synaptics Finger (366):   25, 30, 0
   Synaptics Tap Time (367):   180
   Synaptics Tap Move (368):   64
   Synaptics Tap Durations (369):   180, 180, 100
   Synaptics ClickPad (370):   1
   Synaptics Middle Button Timeout (371):   0
   Synaptics Two-Finger Pressure (372):   282
   Synaptics Two-Finger Width (373):   7
   Synaptics Scrolling Distance (374):   29, 29
   Synaptics Edge Scrolling (375):   0, 0, 0
   Synaptics Two-Finger Scrolling (376):   1, 0
   Synaptics Move Speed (377):   1.000000, 1.750000, 0.137363, 0.000000
   Synaptics Off (378):   1
   Synaptics Locked Drags (379):   0
   Synaptics Locked Drags Timeout (380):   5000
   Synaptics Tap Action (381):   2, 3, 0, 0, 1, 3, 0
   Synaptics Click Action (382):   1, 1, 0
   Synaptics Circular Scrolling (383):   0
   Synaptics Circular Scrolling Distance (384):   0.100000
   Synaptics Circular Scrolling Trigger (385):   0
   Synaptics Circular Pad (386):   0
   Synaptics Palm Detection (387):   0
   Synaptics Palm Dimensions (388):   10, 200
   Synaptics Coasting Speed (389):   20.000000, 50.000000
   Synaptics Pressure Motion (390):   30, 160
   Synaptics Pressure Motion Factor (391):   1.000000, 1.000000
   Synaptics Resolution Detect (392):   1
   Synaptics Grab Event Device (393):   0
   Synaptics Gestures (394):   1
   Synaptics Capabilities (395):   1, 0, 1, 1, 1, 0, 0
   Synaptics Pad Resolution (396):   14, 14
   Synaptics Area (397):   0, 0, 0, 0
   Synaptics Soft Button Areas (398):   607, 0, 660, 0, 0, 0, 0, 0
   Synaptics Noise Cancellation (399):   7, 7
   Device Product ID (266):   1165, 35089
   Device Node (265):   "/dev/input/event12"
[close]

I've been trying a lot of things by overwriting the 70-synaptics.conf file and its .d counterpart, without commenting out the original content.  How can I restore these files to their original state?  Which file is prioritized?

Offline pin

  • Trusted User
  • Member
  • *****
  • Posts: 956
  • Karma: 107
  • Peppermint + awesome wm
    • View Profile
  • Peppermint version(s): Peppermint 9 (64bit)
Re: Peppermint 9 Lenovo Miix 320
« Reply #11 on: July 13, 2018, 05:58:29 pm »

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1489
  • Karma: 401
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 9 - 64bit
Re: Peppermint 9 Lenovo Miix 320
« Reply #12 on: July 14, 2018, 03:11:12 am »

Hi fra,

One tip for you: in the future, and before changing important configuration files, make a copy (backup) of the original that you can always refer to later or use as a "reset" when your changes either do not work or you just wish to revert to the previous state.  ;)

Regards,

 -- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, awesome, Openbox, i3, JWM

Offline pin

  • Trusted User
  • Member
  • *****
  • Posts: 956
  • Karma: 107
  • Peppermint + awesome wm
    • View Profile
  • Peppermint version(s): Peppermint 9 (64bit)
Re: Peppermint 9 Lenovo Miix 320
« Reply #13 on: July 14, 2018, 03:21:39 am »
Sorry I was short of time yesterday.
If I find some time today I'll post my configuration file here. As I didn't have to change anything, it will be the default settings.

EDIT: Here you go...
Spoiler (click here to view / hide)
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
      MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection
[close]

« Last Edit: July 14, 2018, 04:57:01 am by pin »

Offline fra

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Peppermint 9 Lenovo Miix 320
« Reply #14 on: July 14, 2018, 01:51:22 pm »
Hi Slim,

Thank you for the tip.  I guess I had to learn the hard way, but it wasn't a big deal, since I finally decided to delete the Windows Partition and then I just reinstalled Peppermint 9 on the big partition.  Guess it's only a matter of time before I figure out how to activate the tap-to-click.