Posts
I made a script to turn off backlight when the lid closes for a 2017 MacBook Air running Cinnamon
-
sudo apt update && sudo apt install acpid xdotool
-
sudo nano /etc/acpi/lid.sh
a. Copy and paste the following code into the file:
#!/bin/bash
# Find the active screen backlight directory (usually intel_backlight or gmux_b>
BACKLIGHT_DIR=$(ls -d /sys/class/backlight/* | head -n 1)
if [ -z "$BACKLIGHT_DIR" ]; then
exit 1
fi
# Check if the lid is closed
if grep -q "closed" /proc/acpi/button/lid/*/state; then
# 4 cuts the power to the backlight completely
echo 4 > "$BACKLIGHT_DIR/bl_power"
else
# 0 restores normal power to the backlight
echo 0 > "$BACKLIGHT_DIR/bl_power"
fi
b. (Note: If your Mac names the lid something else, you can check it by running ls /proc/acpi/button/lid/).
-
sudo chmod +x /etc/acpi/lid.sh
-
sudo nano /etc/acpi/events/lid-button
a. Write the following:
event=button/lid.*
action=/etc/acpi/lid.sh -
sudo systemctl restart acpid
-
sudo nano /etc/systemd/logind.conf
a. Delete the # from the line that says HandleLidSwitch=ignore
b. Make sure the line ends in "ignore". -
sudo systemctl restart systemd-logind
Just wanted to document it because I didn't see a good rundown elsewhere.
The U.S. dumped 500,000 tons of oyster shells back into the ocean in 2007. Nearly two decades later, they have created a thriving habitat for thousands of marine species
https://en.as.com/latest_news/the-us-dumped-500000-tons-of-oyster-shells-back-into-the-ocean-in-2007-nearly-two-decades-later-they-have-created-a-thriving-habitat-for-thousands-of-marine-species-f202607-n/Open linkView original on lemmy.worldLesbians like me joined forces with conservatives. Now they're turning on us.
cross-posted from: https://lemmy.ca/post/68111168
When the “woke” mania swept the country in 2020, I took a step back and reevaluated where I stood and why I stood there. To my surprise, I found that I agreed with conservatives and libertarians on a number of issues. I opposed childhood gender transitions, unlawful and divisive DEI mandates, and the excesses of Critical Race Theory. I argued against biological males competing in women’s sports and being housed in women’s prisons. I did so loudly and publicly, losing many friends along the way. My stance wasn’t rooted in hate or fear but in a commitment to reason and fairness. My loyalty was to the truth, not to political tribes. Maintaining my integrity cost me greatly, but I believed it was worth it.
Three-Time Trump Voter Calls C-SPAN to Apologize for 'Supporting This Rotten, Rotten Man'
cross-posted from: https://lemmy.zip/post/58611766
"I just want to apologize to everybody in the country for supporting this rotten, rotten man," said a three-time Trump voter who called in to C-SPAN.
https://www.commondreams.org/news/trump-voters-regretOpen linkView original on lemmy.worldWatch: Chinese company's new humanoid robot moves so smoothly, they had to cut it open to prove a person wasn't hiding inside
https://www.livescience.com/technology/robotics/watch-chinese-companys-new-humanoid-robot-moves-so-smoothly-they-had-to-cut-it-open-to-prove-a-person-wasnt-hiding-insideOpen linkView original on lemmy.worldDeSantis threatens to suspend elected Orange County officials over ice funding
cross-posted from: https://50501.chat/post/511481
Pls share:
‼️‼️We have to keep showing up with courage and pushing back against state efforts to make us fund ICE.‼️‼️
We stand with Mayor Demings and our commissioners! #bebravewithus #news #florida
Originally Posted By
u/OCResistanceAt2025-07-31 08:29:12 AM| Source
A German Experiment Proved That Simple Concrete Spheres Make Fantastic Batteries. Now, California Plans To Submerge A 9-Meter Diameter Sphere In The Ocean And Is Already Planning Versions Of 30 Meters
https://farmingdale-observer.com/2025/05/10/a-german-experiment-proved-that-simple-concrete-spheres-make-fantastic-batteries-now-california-plans-to-submerge-a-9-meter-diameter-sphere-in-the-ocean-and-is-already-planning-versions-of-30-meters/Open linkView original on lemmy.worldTrump Live Updates: China Tariffs, Ukraine-Russia War and More
F.B.I. Director Kash Patel said on Friday that agents had arrested a county judge in Milwaukee on charges of obstructing immigration enforcement. A spokesman for the U.S. Marshals confirmed the arrest of a sitting judge, a major escalation in the Trump administration’s battle with local authorities over deportations.
The bureau arrested Judge Hannah Dugan on suspicion that she “intentionally misdirected federal agents away from” an immigrant being pursued by federal authorities, Mr. Patel wroteon social media. He later deleted the post for reasons that were not immediately clear. An F.B.I. spokesman did not immediately respond to a request for comment.
Brady McCarron, a spokesman for the U.S. Marshals, confirmed that the judge had been arrested by F.B.I. agents on Friday morning. The charging document against the judge was not immediately available in federal court records.
The Trump administration has vowed to investigate and prosecute local officials who do not assist federal immigration enforcement efforts, denouncing what they call “sanctuary cities” for not doing more to assist federal apprehensions and deportations of millions of undocumented immigrants.
The Milwaukee case involves a frequent flashpoint in that debate, when immigration agents try to arrest undocumented immigrants who are appearing in state court. Local authorities often chafe at such efforts, arguing they endanger public safety if people dealing with relatively minor legal issues feel it is unsafe to enter courthouses.
In the first Trump administration, a local Massachusetts judge was indicted by the Justice Department on charges of obstructing immigration authorities. The charges were dropped after the judge agreed to refer herself to potential judicial discipline.
https://www.nytimes.com/live/2025/04/25/us/trump-news?campaign_id=190&instance_id=153308&nl=from-the-times®i_id=56414084&segment_id=196733&unlocked_article_code=1.CU8.fBZV.PcjgfMlQvnkc&user_id=f2c59c9aad7c3cd31352abaa45ab02b0&referringSource=articleShareOpen linkView original on lemmy.world





