pid_eins,
@pid_eins@mastodon.social avatar

Did you know you could control brightness of the red dot on the i of the "ThinkPad" on the top-side of your thinkpad? I sure didn't:

this turns it off:

echo 0 | sudo tee /sys/class/leds/tpacpi::lid_logo_dot/brightness

and this turns it on:

echo 255 | sudo tee /sys/class/leds/tpacpi::lid_logo_dot/brightness

I don't really know what this information is good for, but hey, isn't it awesome to have a 1px display on the outside of your laptop?

mmu_man,
@mmu_man@m.g3l.org avatar

@pid_eins not on all models though, mine doesn't have an LED behind it 😞

jlecour,
@jlecour@mastodon.evolix.org avatar

@pid_eins There is a lot of stuff accessible here :

# ls -1 /sys/devices/platform/thinkpad_acpi/  
bluetooth_enable  
cmos_command  
driver  
driver_override  
dytc_lapmode  
hotkey_adaptive_all_mask  
hotkey_all_mask  
hotkey_bios_enabled  
hotkey_bios_mask  
hotkey_enable  
hotkey_mask  
hotkey_poll_freq  
hotkey_radio_sw  
hotkey_recommended_mask  
hotkey_source_mask  
input  
leds  
modalias  
palmsensor  
power  
rfkill  
subsystem  
uevent  
wakeup_hotunplug_complete  
wakeup_reason  
wwan_antenna_type  
yours_truly,
@yours_truly@troet.cafe avatar

@pid_eins

You can replace this LED wit an Infrared one.

I guess you can imagine the impact ... ;)

SignorMacchina,
@SignorMacchina@hessen.social avatar

@pid_eins Rickrolled by Morse Code. 🤔😁

chaz6,

@pid_eins perfect for data exfiltration.

wesmorgan1,

@pid_eins Hmmmm....might have to write some code to make it reflect current load average.....off for (< 1/2 # of cores), blink for (between 1/2 and 3/4 # cores), on for (> 3/4 # of cores)...

NiklasMM,
@NiklasMM@freiburg.social avatar

@pid_eins No man should wield such powers.

nucholab,

@pid_eins morse-code secondary channel :)

joshfowler,

@pid_eins someone needs to make a program to send SOS in Morse code when the kernel panics

gravitos,

@pid_eins i mean, you can use it as a notification LED, that's certainly something

dxzdb,
@dxzdb@mastodon.social avatar

@pid_eins @VisualStuart ha! Never noticed that was a dot for the “i”

scruss,
@scruss@xoxo.zone avatar

@pid_eins TIL this is also a way to tell if Caps Lock is on:

cat /sys/class/leds/input32\:\:capslock/brightness  

0 if off, 1 if on.

hyc,
@hyc@mastodon.social avatar

@pid_eins I had an old Asus laptop with an email notification LED. It was only supported for Windows but I got it working on Linux, you could plug that into my chkmail program for the same purpose. http://highlandsun.com/hyc/#chkmail

BorrisInABox,

@pid_eins Script to flash messages in morse code?

ViejoViajero,

@pid_eins I have the file, it contains "0". Changing it to other values (1, 255, 1000, 10000) does not give me any visible change.

glitch25,

@pid_eins
Nifty!

Takes me back to learning how to hack the colored notification light on my android phone back in the day. Especially when the hardware included it, but the carriers didn't enable it in their firmware. How naive we all were to assume that a phone would sit on a table untouched in a meeting, and our only interface to it would be a colored blinking LED.

petelittle1970,
@petelittle1970@masto.alittleofnothing.co.uk avatar

@pid_eins now write a program to send coded morse code messages to people discretely ;P

MOULE,

@pid_eins Just wait, someone’s gonna port Doom to it next

deneb,

@pid_eins what the fuck

joeyh,
@joeyh@hachyderm.io avatar

@pid_eins sadly no way to control its behavior when the laptop is asleep

(I should probably not sleep in the same room as my laptop, but I do)

John,
@John@socks.masto.host avatar

@pid_eins @stshank I have a Lenovo Legion tower. I was hopeful that I might find something interesting in /sys/class/leds/, but alas only:

input3::capslock input3::compose input3::kana input3::numlock input3::scrolllock

The tower has this ARGB controller but I'm not too hopeful I'll find Linux access .. so I tell myself that I like white fans .. really.

thanius,
@thanius@mastodon.chuggybumba.com avatar

@pid_eins #!/bin/bash

while true; do
for i in {0..255}; do
sudo echo $i > /sys/class/leds/tpacpi::lid_logo_dot/brightness
done

for i in {255..0}; do
sudo echo $i > /sys/class/leds/tpacpi::lid_logo_dot/brightness
done
done

infosec812,
@infosec812@foojay.social avatar

@pid_eins
I could see using this with the sensors package on Linux to change with the temperature or something
@eitch

stefan,
@stefan@graz.social avatar

@pid_eins You need a kernel compiled with CONFIG_THINKPAD_ACPI_UNSAFE_LEDS=y and the boot parameter ec_sys.write_support=1 set.

via https://n.ethz.ch/~dbernhard/disable-led-on-a-thinkpad.html

samueljohnson,
@samueljohnson@mstdn.social avatar

@pid_eins Could use as a pre-arranged signal in a meeting 😋

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • provamag3
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • megavids
  • Leos
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines