I've implemented some measures to keep those little nifty buggers away...
Year: 2023
Sometimes..
Hardware may be to old, i guess...
In keep-the-notebook-running-when-the-lid-is-closed I've written about repurposing my P50 as my personal proxmox server. Turns out - it's a little bit to old for that....
Tried - yea, i know - 2 VMs running Windows Server 2022, each 2 Cores, 16 GB RAM - was no fun to work with them. Tried several other constellations - all in all way to laggy.
So for now it's running voidlinux with the mate as UI, still installing some software, configuring some stuff and services.
Keep the notebook running when the lid is closed
Recently i repurposed my old Lenovo P50 (2 x 1TB SSD, i7-6820, 64 GB RAM) to become my 'personal' proxmox-cluster.
Had one little annoyance: closing the lid causes the P50 to go into sleep mode - not that helpful, because you usually don't work directly on the prox..
Long story short - after searching the web a very simple and smart solution:
First let's look at the acpi table
root@pve:~# cat /proc/acpi/wakeup | grep "LID"
LID S4 *enabled platform:PNP0C0D:00
Nice, now let's disable this one - dry run in the shell:
echo 'PNP0C0D:00' | tee /sys/bus/acpi/drivers/button/unbind
And close the lid. Your prox is still available? Goood!
Final step: Create a file (if it does not exist..) /etc/rc.local
, add the command from above with a little yada.
#!/bin/bash
echo 'PNP0C0D:00' | tee /sys/bus/acpi/drivers/button/unbind
exit 0
Save it, make it x-able - reboot, test - should work.
Flickering backlight on Lenovo Laptop-Displays
Recently I reinstalled kali on my X270 - and sometimes the backlight was flickering.
A short search showed me that this issue is known, for windows you would have to do some yadayada with removing drivers whilst in savemode and that.
As I'm not using Windows - at least the information about the driver was helpful: it's the intel i915 stuff. Continued to search, I found a possible solution, tried it: success.
So: If you're experiencing something similar, first thing to do:
- open a shell as root
- check cat
/sys/kernel/debug/dri/0/i915_edp_psr_status
forPSR mode: enabled
- change
/etc/default/grub' :
GRUB_CMDLINE_LINUX_DEFAULT="[..] i915.enable_psr=0 [..]" - reinstall / reconfigure grub
- reboot (logoff isn't enough, as the kernel cmd line params are only read on boot)
Firefox Modifications
Just as a quick note for myself...
Getting rid of the Firefox Tabbar when using TreeStyleTab
- in your profile folder create a folder chrome, in there create a file userChrome.css
/* hides the native tabs */ #TabsToolbar { visibility: collapse; }
- open about:config, set
toolkit.legacyUserProfileCustomizations.stylesheets
to true - restart Firefox
Have to test it on macOS, Linux and Windows works fine, also LibreFox