参考 Hybrid_graphics#Using_udev_rules
/etc/default/grub
添加了 nosgx
参数来解决每次启动的日志警告 x86/cpu: SGX disabled by BIOS
/etc/sudoers
添加 user(note to replace) ALL=(ALL:ALL) NOPASSWD: /usr/bin/dae reload, /usr/bin/dae suspend
来避免输入密码,便于 cron
定时执行
$ echo "DefaultTimeoutStopSec=10s" | sudo tee /etc/systemd/user.conf.d/timeoutstopsec.conf