Giter VIP home page Giter VIP logo

vaio-p-linux's Introduction

vaio-p-linux

Contains some setting for using (Arch)Linux on sony vaio p series

Multi monitor using modesetting driver

Multi monitor setup can be achieved using xrandr after setting the xorg driver to modesetting (Modesetting driver must be installed first). Add 10-modesetting.conf to xorg directory.

file:///etc/X11/xorg.cof.d/10-modesetting.conf

Brightness

Brightness can be manipulated by echo-ing value to /sys/class/backlight/psb-bl/brightness (for gma500_gfx, if using emgd driver the location change). To enable changing brightness as normal user, that 'file' must be writeable to all user. The brightness.service systemd unit will change the permission to allow that, and reduce brightness to 20%.

file:///etc/systemd/system/brightness.service

brightness-control.sh enable changing the brightness incrementally. At the end of change it will pop notification using notify-send (can be removed if not needed). Do not forget to mark it as executable.

Keyboard mapping

Most keys are recognized by default with the exception of zoomin/zoomout (fn + f9/f10) and vaio key (key between assist and web) on VPCP111KX.

Those keys are generating scancodes, but mapped to keycode greater than 255. X11 does not support keycode gerater than 255. Zoomin/zoomout will be mapped to prog3/prog4 and vaio key to prog1. Those keycode can later be remapped using desktop environment shortcut, or using xbindkeys.

###1. Using udev keymap (prior to systemd 206) Create a mapping file (module-sony-vaio) for the extra key in keymaps folder.

file:///lib/udev/keymaps/module-sony-vaio-p

Create a udev rules (98-keymap-vaio-p.rules) to run the keymap for the file

file:///etc/udev/rules.d/98-keymap-vaio-p.rules

###2. Using hwdb Create a mapping file for hwdb (88-vaio-p-hwdb). /etc/udev/hwdb/88-vaio-p.hwdb

Update hwdb and restart

udevadm hwdb --update && reboot

xbindkeys helper

.xbindkeysrc can be used to map extra keys to desired functionality

file: ///home/min/.xbindkeysrc

Touchstick Scrolling

Vaio p touchstick is only recognised as a mouse. By default it doesn’t allow middle click scroling (holding the middle button and move the touchstick to scroll. Put the 42-touchstick.conf in xorg config directory to enable it. I can not find a way to enable the press to select.

file:///etc/42-touchstick.conf

vaio-p-linux's People

Contributors

mmargoliono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

friedscale

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.