2.9 KiB
Clevo laptop which is sold by Tuxedo computers.
General
Set the hostname:
hostnamectl set-hostname moni-fedora # Fedora
hostnamectl set-hostname moni-opensuse # openSUSE
Install my favorite packages
zypper install tmux htop neovim git ncdu podman # openSUSE
dnf install tmux htop neovim git ncdu podman # Fedora
Suspend when laptop lid closed
On openSUSE:
On Fedora:
nvim /usr/lib/systemd/logind.conf # Fedora & openSUSE
nvim /etc/systemd/logind.conf # Ubuntu
Uncomment the lines:
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=ignore
LidSwitchIgnoreInhibited=yes
You need to reboot before it takes effect.
Wake on suspend
There is a bug in Linux kernel 6. This article explains this:
https://bugzilla.redhat.com/show_bug.cgi?id=2162013
Somehow the touchpad keeps waking up the laptop.
cat /proc/acpi/wakeup
Should return:
Device S-state Status Sysfs node
GPP0 S0 *disabled
GPP1 S0 *disabled
GP17 S0 *enabled pci:0000:00:08.1
Temporarily disable
To temporarily disable it do this:
echo disabled > /sys/bus/i2c/devices/i2c-FTCS1000:00/power/wakeup
Persistent settings
As root:
nvim /etc/systemd/system/disable-wakeup.service
Contents:
[Unit]
Description=Disable wakeup triggers
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo disabled > /sys/bus/i2c/devices/i2c-FTCS1000\:00/power/wakeup ; echo GP17 > /proc/acpi/wakeup"
ExecStop=/bin/sh -c "echo disabled > /sys/bus/i2c/devices/i2c-FTCS1000\:00/power/wakeup ; echo GP17 > /proc/acpi/wakeup"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Then simply enable and start it:
systemctl enable disable-wakeup.service
systemctl start disable-wakeup.service
Reboot the laptop and check to see if the systemd unit works:
systemctl status disable-wakeup.service
cat /proc/acpi/wakeup
cat /sys/bus/i2c/devices/i2c-FTCS1000\:00/power/wakeup
Test it by suspending the laptop. You can also use:
systemctl suspend -i
Tuxedo control center
Instructions: https://www.tuxedocomputers.com/en/Add-TUXEDO-software-package-sources.tuxedo
On openSUSE
See instructions on page and then:
zypper refresh && zypper install tuxedo-control-center
On Fedora
nvim /etc/yum.repos.d/tuxedo.repo
Contents:
[tuxedo]
name=tuxedo
baseurl=https://rpm.tuxedocomputers.com/fedora/40/x86_64/base
enabled=1
gpgcheck=1
gpgkey=https://rpm.tuxedocomputers.com/fedora/40/0x54840598.pub.asc
skip_if_unavailable=False
Get the key:
wget https://rpm.tuxedocomputers.com/fedora/40/0x54840598.pub.asc
And install it:
rpm --import ./0x54840598.pub.asc
Now install the control center:
dnf update
dnf install tuxedo-control-center
You need to reboot before it takes effect.
Virtualization
dnf install @virtualization
systemctl enable libvirtd
systemctl start libvirtd