All of the Tuxedo stuff seems to be optional and this laptop has fantasic support out of the box w/ Xubuntu.
To add the repos, make a source list for the tuxedo repos
sudo vim /etc/apt/sources.list.d/tuxedo-computers.list
Add the following (for now, until updated)
deb http://deb.tuxedocomputers.com/ubuntu focal main
# deb http://intel.tuxedocomputers.com/ubuntu focal main
deb http://graphics.tuxedocomputers.com/ubuntu focal main
# deb http://kernel.tuxedocomputers.com/ubuntu focal main
Add the repo key
curl -s https://raw.githubusercontent.com/tuxedocomputers/tuxedo.sh/master/keys/ubuntu.pub | sudo apt-key add -
Note: not sure if I actually need tuxedo-keyboard-dkms
, tuxedo-control-center
is nice to have but not necessary. It allows changing fan/cpu speeds.
sudo apt install tuxedo-control-center
This is definitely one of the most important things to do as it makes life much easier going forward and installs a lot of utils/repos right away.
sudo apt install git
git clone [email protected]:amcolash/ubuntu-meta-packages.git
cd ubuntu-meta-packages
./install.sh
There are a lot of tweaks to make GRUB work better for my needs. Here is a list of all of them. See my custom grub file below as well.
Power management + sleep states seem to be a bit off with this device out of the box. I found that I was able to fix suspend and actually use deep sleep (s3) with the following from: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1808957
-
Edit
/etc/default/grub
and addmem_sleep_default=deep
to the default, i.e.:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"
-
Run
sudo update-grub
-
[XFCE] To save backlight brightness across sleep + hybernate, use this script to save/restore on resume: https://askubuntu.com/a/805434/397460
- Use the scripts from: https://gist.github.com/LeahCim/9332432 (so that the
TIMEOUT
andTIMEOUT_STYLE
are saved) - Make sure to
chmod +x
them so that they actually are run. - Edit
/etc/default/grub
- Edit
GRUB_CMDLINE_LINUX
to includeconsole=ttyS0 loglevel=3
to hidefsck
stuff on boot (so it looks likeGRUB_CMDLINE_LINUX="console=ttyS0"
) - Change
TIMEOUT
to 2 second - For immediate resume from hibernate, change
GRUB_RECORDFAIL_TIMEOUT
to 0. (see here)[To fix grub timeout: https://ubuntuforums.org/showthread.php?t=2333934]
- Edit
- Run
sudo update-grub
- Add a reboot to windows button: https://rastating.github.io/creating-a-reboot-into-windows-button-in-ubuntu/
- First, download
tp-auto-kbbl
from https://github.com/saibotd/tp-auto-kbbl. - Install the binary
sudo cp tp-auto-kbbl /usr/bin/
- Download service file and move to
/etc/systemd/system/tp-auto-kbbl.service
- Reload + enable + start
sudo systemctl daemon-reload && sudo systemctl enable tp-auto-kbbl && sudo systemctl start tp-auto-kbbl
By default, linux will update time via ntp
but will not update the timezone based on device location. To make life easier, simply install tzupdate
. Then add the script named update_timezone
.
Install using rust or python. Python comes by default which makes things simpler pip install -U tzupdate
. Make sure to update the script to match installed binary.
I have had issues getting howdy (face unlock) to reliably work in various distros / lock screens. Here are some links to check. boltgolt/howdy#121 boltgolt/howdy#408
Steps for linux mint:
sudo chmod a+x /lib/security/howdy/recorders
sudo apt install python3-opencv
sudo howdy config --> no_confirmation = true
It looks like Xubuntu works with this wifi device out of the box, but I am not sure if I am getting the full potential of it. Just in case, I grabbed the driver from Intel here.
wget https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi/iwlwifi-cc-46.3cfab8da.0.tgz
tar -xvf iwlwifi-cc-46.3cfab8da.0.tgz
sudo cp iwlwifi-cc-46.3cfab8da.0/* /lib/firmware
Since we change the GRUB_DISTRIBUTOR
value from Ubuntu
to Xubuntu
, we need to fix the default theme as well. Just add the 50_simple-theme
file to /etc/grub.d/
and make it executable. This is just a copy of useful bits of the original /etc/grub.d/05_debian-theme
.
Follow the directions here: https://forums.linuxmint.com/viewtopic.php?p=1836169&sid=40023f0781a2902d9939e4826269a4cc#p1836169
Make a file /etc/X11/Xsession.d/80_xmodmap
for execution on login
#!/bin/sh
# Set custom keycodes
#
# This file is sourced by Xsession(5), not executed.
# The "|| true" is to ensure that the Xsession script does not terminate on error
USRMODMAP="$HOME/.Xmodmap"
if [ -x /usr/bin/xmodmap ]; then
if [ -f "$USRMODMAP" ]; then
/usr/bin/xmodmap "$USRMODMAP" || true
fi
fi
Make $HOME/.Xmodmap
clear mod5
keycode 108 = Alt_L
- Settings -> Keyboard -> Layout
- Uncheck System Defaults
- Use "English (US) -> English (intl, with AltGr dead keys)"
- Enable the option in mouse section of xfce, set accel to 4.8
- Remove synaptic driver:
sudo apt remove xserver-xorg-input-synaptics
echo "wnck-pager:selected { background-color: #5494E2; }" >> $HOME/.config/gtk-3.0/gtk.css
echo "wnck-pager:hover { background-color: #64A4F2; }" >> $HOME/.config/gtk-3.0/gtk.css`
There is some really bad screen tearing in XFCE since it doesn't use an HW compositor. Let's use that GPU!
- Disable XFCE WM (or via gui in wm tweaks):
xfconf-query -c xfwm4 -p /general/use_compositing -s false
- Make sure compton is installed (part of my meta packages, but otherwise):
sudo apt install compton
- Add compton to startup, easiest way is to add a startup item which executes
compton
I decided to disable the screensaver as I don't use one and would rather just blank the screen anyways. The screensave seems to show the desktop for a moment before going back to the lock screen so this helps that as well.
- Open Screensaver Settings
- Disable screensaver
- On lock screen tab, uncheck "lock screen with screensaver"
The new route to try (make sure to add resume UUID into grub config): https://itectec.com/ubuntu/ubuntu-how-to-go-automatically-from-suspend-into-hibernate/ and make sure to update other relevant suspend spots: https://forums.linuxmint.com/viewtopic.php?t=287015
To turn on hibernation: https://askubuntu.com/a/1032166/397460
To auto hibernate from sleep: http://www.futurile.net/2016/12/10/delayed-hibernation-xenial-xerus/
To re-enable hibernation in xfce menus: https://askubuntu.com/a/94963/397460
The infinitybook does not have lights for indicating caps lock (very annoying) and num lock (midly annoying). Due to this, I needed to have a simple solution for XFCE as an indicator and also toggle button. Things I found were not very reliable or only partially worked for my use case. I opted in the end to use the genmon
panel plugin to do this. Attached below are the caps + num lock scripts which require xdotool
as well as the papirus
icon set, but are easily modified to other icons if needed.
Only bit of setup is placing the scripts somewhere (in my case ~/.local/bin/
) and then turning the update value to 0.25 seconds so it is nice and quick to toggle the icon back and forth.