Comments (13)
This is close now to a perfect laptop for me. Once sound is supported on a mainline kernel we'll be golden!
from pixelbook-linux.
I was actually considering trying an upgrade to 19.10 as your post came in!
Did you re-run the pixelbook-linux install after the upgrade, or was that no necessary?
from pixelbook-linux.
The upgrade for me was painless - no need to run the install script after. This is the only issue I've had to address.
After posting this I realized the xmodmap doesn't survive a reboot. Perhaps others here have a suggestion for how to fix that? Or a better way to map the brightness keys?
from pixelbook-linux.
You can create an ~/.xmodmaprc with these settings, or a shell script and set it to autostart on login
from pixelbook-linux.
Just a follow-up. I upgraded. No issue, as you report!
On the keyboard mappings, The .xmodmaprc, .Xmodmap etc did not work for me. What did work was creating a shell script like ~/bin/xmodmap.sh
:
#!/bin/bash
xmodmap -e "keycode 133 = Super_R"
xmodmap -e "keycode 134 = Super_L"
...and then a startupfile in .config/autostart/xmodmap.desktop
:
[Desktop Entry]
Name=Xmodmap
Comment=xmodmap
Exec=~/bin/xmodmap.sh
Icon=application-default-icon
X-GNOME-Autostart-enabled=true
Type=Application
Log out and back in.
I am thinking I wouldn't mind remapping all the Function keys to match their labels, and use Ctrl-Fx for the actual function keys. Anybody have a readymade mapping file for those?
from pixelbook-linux.
Yes, that works! Thanks - great solution.
I've been happily using the keyboard shortcuts for each function key - things like play, pause, volume up / down etc all work with a quick tweak in Settings. I'm sure there's a better way though!
from pixelbook-linux.
If you map play, pause, etc then you lose the F1..F12 keys. I want them mapped to Ctrl-F1 .. Ctrl-F12
from pixelbook-linux.
That wasn't so hard after all. The following keymaps create the correct function for the pixelbook top keys, while shift- or ctrl- gives you the Fx keys.
keycode 67 = XF86Back F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1
keycode 68 = F5 F2 F2 F2 F2 F2 XF86Switch_VT_2 F2 F2 XF86Switch_VT_2
keycode 69 = F11 F3 F3 F3 F3 F3 XF86Switch_VT_3 F3 F3 XF86Switch_VT_3
keycode 70 = Print F4 F4 F4 F4 F4 XF86Switch_VT_4 F4 F4 XF86Switch_VT_4
keycode 71 = XF86MonBrightnessDown F5 F5 F5 F5 F5 XF86Switch_VT_5 F5 F5 XF86Switch_VT_5
keycode 72 = XF86MonBrightnessUp F6 F6 F6 F6 F6 XF86Switch_VT_6 F6 F6 XF86Switch_VT_6
keycode 73 = Pause F7 F7 F7 F7 F7 XF86Switch_VT_7 F7 F7 XF86Switch_VT_7
keycode 74 = XF86AudioMute F8 F8 F8 F8 F8 XF86Switch_VT_8 F8 F8 XF86Switch_VT_8
keycode 75 = XF86AudioLowerVolume F9 F9 F9 F9 F9 XF86Switch_VT_9 F9 F9 XF86Switch_VT_9
keycode 76 = XF86AudioRaiseVolume F10 F10 F10 F10 F10 XF86Switch_VT_10 F10 F10 XF86Switch_VT_10
keycode 95 = F11 F11 F11 F11 F11 F11 XF86Switch_VT_11 F11 F11 XF86Switch_VT_11
keycode 96 = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12 F12 F12 XF86Switch_VT_12
Note: I use the "overview" key as PrintScr so I can map it to screen capture as I already have the CrOS Search key set to overview.
from pixelbook-linux.
This is excellent - many thanks for sharing, it works perfectly. And funny enough, I was using that same key for print screen.
from pixelbook-linux.
This is close now to a perfect laptop for me. Once sound is supported on a mainline kernel we'll be golden!
You think sound support will come to mainline kernel after all? Any hints on it actually happening in the foreseeable future?
from pixelbook-linux.
You think sound support will come to mainline kernel after all? Any hints on it actually happening in the foreseeable future?
I have no idea, apart from the fact that support comes to everything in time!
from pixelbook-linux.
@ranalabs I have discovered that the xmodmap has two big issues:
- It does not work on Wayland
- It does not survive a suspend/resume.
Usin the udev hwdb seems to solve both of these. Here is my /lib/udev/hwdb.d/61-eve-keyboard.hwdb file:
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
#
# Special keyboard mapping for Eve project. The keyboard has extra
# "Assistant" and "Hamburger" keys.
#
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnGoogle:pnEve:pvr*
# KEYBOARD_KEY_5d=controlpanel
KEYBOARD_KEY_d8=rightmeta
KEYBOARD_KEY_db=leftmeta
KEYBOARD_KEY_3b=back
KEYBOARD_KEY_3c=f5
KEYBOARD_KEY_3d=f11
KEYBOARD_KEY_3e=print
KEYBOARD_KEY_3f=brightnessdown
KEYBOARD_KEY_40=brightnessup
KEYBOARD_KEY_41=playpause
KEYBOARD_KEY_42=mute
KEYBOARD_KEY_43=volumedown
KEYBOARD_KEY_44=volumeup
from pixelbook-linux.
I arrived at the same realization. Great to have the eve keyboard layout, thanks. In my case I switch between this eve keyboard and a traditional Spanish layout, but the region selector keyboard layout UI in Settings is borked for some reason. It's quite easy to switch between them with setxkbmap though.
from pixelbook-linux.
Related Issues (20)
- Python script not detecting inputs HOT 3
- cras build fails on clean install of 19.10 HOT 2
- touchpad and audio broken on 19.10 HOT 1
- Audio on 18.04 HOT 2
- Plans for making 20.04 since 19.04 is now unsupported? HOT 14
- /usr/bin/jackd -r -s -v -d alsa -P cras & this will allow JACK to cras very useful for audio programs
- When suspend is disabled, display blanks and never comes back. HOT 1
- Audio installation failure (GalliumOS) HOT 1
- key changes
- Samsung Chromebook Pro - Ubuntu 18.04.5
- Pixelbook 2017 install successful,but intel hd 615 grapchic card lost HOT 7
- Mic not working on 20.04.2 LTS
- Error message running script: An error occurred flashing the Full ROM firmware. DO NOT REBOOT! HOT 1
- Error while installing apt packages
- PixelBook Go output devices
- Stuck while installing apt packages on Pixelbook GO (Ubuntu 22.04 LTS) HOT 1
- On the Pixelbook go it only works with Ubunut 20.04 LTS HOT 11
- eve-audio-ctl.py error
- Unable to retrieve file contents\nCould not find
- firmware-util.sh: line 1: payload:allShortcutsEnabled:false
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixelbook-linux.