179 lines
2.9 KiB
Markdown
179 lines
2.9 KiB
Markdown
Clevo laptop which is sold by Tuxedo computers.
|
|
|
|
# General
|
|
|
|
Set the hostname:
|
|
|
|
```sh
|
|
hostnamectl set-hostname moni-fedora # Fedora
|
|
hostnamectl set-hostname moni-opensuse # openSUSE
|
|
```
|
|
|
|
Install my favorite packages
|
|
|
|
```sh
|
|
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:
|
|
|
|
```sh
|
|
nvim /usr/lib/systemd/logind.conf # Fedora & openSUSE
|
|
nvim /etc/systemd/logind.conf # Ubuntu
|
|
```
|
|
|
|
Uncomment the lines:
|
|
|
|
```conf
|
|
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.
|
|
|
|
```sh
|
|
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:
|
|
|
|
```sh
|
|
echo disabled > /sys/bus/i2c/devices/i2c-FTCS1000:00/power/wakeup
|
|
```
|
|
|
|
## Persistent settings
|
|
|
|
As root:
|
|
|
|
```sh
|
|
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:
|
|
|
|
```sh
|
|
systemctl enable disable-wakeup.service
|
|
systemctl start disable-wakeup.service
|
|
```
|
|
|
|
Reboot the laptop and check to see if the systemd unit works:
|
|
|
|
```sh
|
|
systemctl status disable-wakeup.service
|
|
```
|
|
|
|
```sh
|
|
cat /proc/acpi/wakeup
|
|
cat /sys/bus/i2c/devices/i2c-FTCS1000\:00/power/wakeup
|
|
```
|
|
|
|
Test it by suspending the laptop. You can also use:
|
|
|
|
```sh
|
|
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:
|
|
|
|
```sh
|
|
zypper refresh && zypper install tuxedo-control-center
|
|
```
|
|
|
|
|
|
## On Fedora
|
|
|
|
```sh
|
|
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:
|
|
|
|
```sh
|
|
wget https://rpm.tuxedocomputers.com/fedora/40/0x54840598.pub.asc
|
|
```
|
|
|
|
And install it:
|
|
|
|
```sh
|
|
rpm --import ./0x54840598.pub.asc
|
|
```
|
|
|
|
Now install the control center:
|
|
|
|
```sh
|
|
dnf update
|
|
dnf install tuxedo-control-center
|
|
```
|
|
|
|
You need to reboot before it takes effect.
|
|
|
|
# Virtualization
|
|
|
|
```sh
|
|
dnf install @virtualization
|
|
```
|
|
|
|
```sh
|
|
systemctl enable libvirtd
|
|
systemctl start libvirtd
|
|
```
|