Author Topic: Dell XT2 (from ~ 2010)  (Read 287 times)

Offline esquire

  • Newly Subscribed
  • *
  • Posts: 8
  • Karma: 2
  • Some weird guy
    • View Profile
  • Peppermint version(s): Peppermint 10 respin
Dell XT2 (from ~ 2010)
« on: January 04, 2020, 02:23:21 pm »
Hello!

I'm running Peppermint 10 Respin on a Dell XT2 tablet PC.

Output of inxi -Fz:
Code: [Select]
System:    Host: glen-Latitude-XT2 Kernel: 5.0.0-37-generic x86_64 bits: 64
           Desktop: N/A Distro: Peppermint Ten
Machine:   Device: portable System: Dell product: Latitude XT2 serial: N/A
           Mobo: Dell model: 0M373P serial: N/A BIOS: Dell v: A15 date: 06/19/2013
Battery    BAT0: charge: 42.2 Wh 240.4% condition: 17.5/42.2 Wh (42%)
           BAT1: charge: 31.5 Wh 100.0% condition: 31.5/45.0 Wh (70%)
CPU:       Dual core Intel Core2 Duo U9600 (-MCP-) cache: 3072 KB
           clock speeds: max: 1601 MHz 1: 1576 MHz 2: 1533 MHz
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
           Display Server: x11 (X.Org 1.20.4 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1280x800@60.05hz
           OpenGL: renderer: Mesa DRI Mobile Intel GM45 Express
           version: 2.1 Mesa 19.0.8
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k5.0.0-37-generic
Network:   Card-1: Intel 82567LM Gigabit Network Connection driver: e1000e
           IF: enp0s25 state: down mac: <filter>
           Card-2: Broadcom and subsidiaries BCM4322 802.11a/b/g/n Wireless LAN Controller
           driver: b43-pci-bridge
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 160.0GB (10.4% used)
           ID-1: /dev/sda model: INTEL_SSDSA1NW16 size: 160.0GB
Partition: ID-1: / size: 37G used: 16G (45%) fs: ext4 dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 56.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 192 Uptime: 44 min Memory: 1373.5/4902.8MB
           Client: Shell (bash) inxi: 2.3.56

There are two sets of mouse buttons: one set above the touchpad and one set below. On Peppermint 10 Respin, the bottom buttons do not work. However, they do work on Peppermint 9.

In addition, this computer does not have automatic rotation for the screen. I have hotkeyed a script used to change the orientation of the screen, digitizer, and touch sensor. I have "rotate_desktop.sh right" bound to <super>Right, "rotate_desktop.sh left" bound to <super>Left, etc.

The script is  below (based on another screen rotation script that I've found here: https://gist.github.com/mildmojo/48e9025070a2ba40795c)
Code: [Select]
#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
#   https://wiki.ubuntu.com/X/InputCoordinateTransformation
#

# Configure these to match your hardware (names taken from `xinput` output).
TOUCHPAD='15'
TOUCHSCREEN='17'

if [ -z "$1" ]; then
  echo "Missing orientation."
  echo "Usage: $0 [normal|inverted|left|right] [revert_seconds]"
  echo
  exit 1
fi

function do_rotate
{
  xrandr --output $1 --rotate $2

  TRANSFORM='Coordinate Transformation Matrix'

  case "$2" in
    normal)
      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" 1 0 0 0 1 0 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" 1 0 0 0 1 0 0 0 1
      ;;
    inverted)
      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" -1 0 1 0 -1 1 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" -1 0 1 0 -1 1 0 0 1
      ;;
    left)
      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" 0 -1 1 1 0 0 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" 0 -1 1 1 0 0 0 0 1
      ;;
    right)
      [ ! -z "$TOUCHPAD" ]    && xinput set-prop "$TOUCHPAD"    "$TRANSFORM" 0 1 0 -1 0 1 0 0 1
      [ ! -z "$TOUCHSCREEN" ] && xinput set-prop "$TOUCHSCREEN" "$TRANSFORM" 0 1 0 -1 0 1 0 0 1
      ;;
  esac
}

XDISPLAY=`xrandr --current | grep primary | sed -e 's/ .*//g'`
XROT=`xrandr --current --verbose | grep primary | egrep -o ' (normal|left|inverted|right) '`

do_rotate $XDISPLAY $1

if [ ! -z "$2" ]; then
  sleep $2
  do_rotate $XDISPLAY $XROT
  exit 0
fi

For reference, xinput -list results in:
Code: [Select]
⎡ Virtual core pointer                    id=2 [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad        id=11 [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint Stick            id=12 [slave  pointer  (2)]
⎜   ↳ N-Trig Pen stylus                        id=13 [slave  pointer  (2)]
⎜   ↳ N-Trig Pen eraser                        id=14 [slave  pointer  (2)]
⎜   ↳ N-Trig Touchscreen                      id=15 [slave  pointer  (2)]
⎜   ↳ N-Trig Touchscreen                      id=16 [slave  pointer  (2)]
⎜   ↳ N-Trig Pen stylus                        id=17 [slave  pointer  (2)]
⎜   ↳ N-Trig Pen eraser                        id=18 [slave  pointer  (2)]
⎣ Virtual core keyboard                    id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard              id=5 [slave  keyboard (3)]
    ↳ Video Bus                                id=6 [slave  keyboard (3)]
    ↳ Power Button                            id=7 [slave  keyboard (3)]
    ↳ Sleep Button                            id=8 [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                        id=9 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            id=10 [slave  keyboard (3)]

So when rotating the screen, it rotates one of the N-Trig Touchscreen inputs and one of the N-Trig Pen stylus inputs.

I am still working on figuring out bindings for some of the other buttons on here. It has several other buttons, which I'll need to figure out what to do with.
How do signatures work again?