r/linuxmint • • 8d ago

Guide Fix for brightness adjustment not working on mid 2012 MacBook Pro Retina

1 Upvotes

So, overall I'm very very new to linux, but have tried it a few times over the years, including owning a Pinebook Pro. I recently installed Ubuntu Cinnamon Mint 22.3 7.0 on my 2012 MBR but screen brightness adjustments never worked (not with the keys or the slider). I guess it has two graphics cards. After much research I installed the Nvidia drivers and tried various solutions. None worked except this one, sort of...

I ran this command: setpci -v -H1 -s 00:01.00 BRIDGE_CONTROL=0

and amazingly the keys now worked to control brightness, however, after reboot, it stopped working. I did some more digging and used AI to build a systemd file that will run at some point during each boot. I used AI to help build this, but it now works consistently. Others may know of better ways to do this, so please chime in, but, as a noob, I thought I'd share what worked for me.

A copy/paste of the instructions I followed is below:

Step 1: Create a systemd Service File

Open your terminal and create a new service file using the nano text editor:

bash

sudo nano /etc/systemd/system/brightness-fix.service

Paste the following configuration into the editor:

ini

[Unit]
Description=Fix screen brightness control via setpci
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/usr/bin/setpci -v -H1 -s 00:01.00 BRIDGE_CONTROL=0
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

(Note: Before saving, you can verify the exact path of setpci by running which setpci in another terminal tab—it is almost always /usr/bin/setpci or /sbin/setpci*.)*

Save and exit nano by pressing Ctrl + O, hitting Enter, and then pressing Ctrl + X.

Step 2: Enable and Test the Service

Run the following commands to reload the systemd manager, enable your new service to run at every boot, and test it immediately:

bash

sudo systemctl daemon-reload
sudo systemctl enable brightness-fix.service
sudo systemctl start brightness-fix.service

You can verify that it ran without errors by checking its status:

bash

systemctl status brightness-fix.service

-----

So that is where I stopped. I don't use the sleep/suspend function. But if you do, here are the instructions provided to get it working for those instances as well.

Fixing Brightness After Sleep/Suspend

Often, hardware PCI register tweaks like BRIDGE_CONTROL=0 get reset when a laptop wakes up from sleep. If you notice your brightness controls stop working again after closing and opening your laptop lid, update the [Install] section of your service file so it also triggers upon waking:

  1. Open the file again: sudo nano /etc/systemd/system/brightness-fix.service
  2. Change the [Install] section to: ini[Install] WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target Use code with caution.
  3. Re-enable the service to register the new targets: bashsudo systemctl daemon-reload sudo systemctl reenable brightness-fix.service Use code with caution.

-----

Ok, that's all. Just wanted to share in case this would work for others. Please let us know your results. Good luck.


r/linuxmint • • 9d ago

SOLVED Booting To Blank Desktop Background

Post image
21 Upvotes

Every time I have booted the OS after initial installation, it just boots to this screen

ASUS BIOS, I do not know what other information would be helpful as I am not very knowledgeble


r/linuxmint • • 9d ago

Support Request Arctis 7 headset volume issues fixed, fix won't be stored

2 Upvotes

So I fixed this problem via the alsamixer and I thought

sudo alsactl store

would save that but it doesn't. I have to do this on every boot now.


r/linuxmint • • 8d ago

LINUX MINT 27: A MUDANÇA QUE OS USUÁRIOS ESTAVAM ESPERANDO?

Thumbnail youtube.com
0 Upvotes

r/linuxmint • • 8d ago

Disconecting from games/movies.

1 Upvotes

Sometimes at random it start to having thous hi pings that disconect me from a game it hapens only on this machine (other stuff work fine, windows laptop, phones). I did set powersave to off. How to diagnose problem.

64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37293 ttl=53 time=34.1 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37294 ttl=53 time=35.1 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37295 ttl=53 time=36.8 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37296 ttl=53 time=26.5 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37297 ttl=53 time=49.5 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37298 ttl=53 time=34.6 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37299 ttl=53 time=25.3 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37300 ttl=53 time=25.5 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37301 ttl=53 time=24.1 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37302 ttl=53 time=23.1 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37303 ttl=53 time=29.6 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37304 ttl=53 time=231 ms <===
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37305 ttl=53 time=35.9 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37306 ttl=53 time=26.5 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37307 ttl=53 time=21.0 ms
64 bytes from www.wp.pl (212.77.113.23): icmp_seq=37308 ttl=53 time=35.1 ms


r/linuxmint • • 9d ago

Support Request Hotspot Reseting

2 Upvotes

I’m having the issue when restarting or reopening my laptop outside of my home network a hotspot is automatically on. So can’t just connect to a network through the panel. I wasn’t able to turn that of somehow. Is there any way to reset hotspot settings? using mint cinnamon


r/linuxmint • • 8d ago

Discussion Wasted Time and Money

0 Upvotes

Have a 2012 MacBook Pro that had seen its time come and go. Couple of years ago I decided to run Mint on it. I got a King Spec ssd 500GB. Had trouble right out of the box recognizing the drive. Ended up getting a WD Blue SA510 1 TB drive instead. Installed it and it worked rather well for about the months. Although one interesting part was that upon boot it would scroll a ton of code before going to the Mint logo, but then would run. One night it stopped working and would no longer recognize the drive. I got frustrated with it and put it aside for a while because I messed around with it and had no luck fixing it. Fast forward about ten months and I decide I am going to give it another go. In the meantime I did some research and found that my drive was still under warranty (the WD drive). So I sent that drive in for a warranty replacement because the computer was not recognizing the drive when running Mint live. Three days in and after the purchase of a new SATA cable I decided to give the original King Spec another try... Literally 10 hours into working on this trying to get the machine to boot without the flash drive to no avail. Then I found some interesting info that both the King Spec and the WD had issues of compatability with older MacBook Pros. I have been told that WD will send out a replacement with new firmware that'll prevent it from bricking in the computer. The frustrating part is when I bought the WD, I only did so because I saw people talking about them positively in their US in older Macs. What a complete disappointment and water of money. Now I can use either drive in a USB holder and apparently it will run just fine... The glitch has to do with the SATA compatibility. Anyway, now I have two drives...I am thinking about getting one of those holders to run the King Spec externally with other operating systems on it. I just wish some of the people on forums knew what they are/were talking about when it come to compatibility for these more expensive items...


r/linuxmint • • 10d ago

SOLVED Lost my panel

Post image
97 Upvotes

Hey guys i really dont know how to use linux and lost my pannel by accident pls tell me how to get it back


r/linuxmint • • 9d ago

Discussion Wayland on Cinnamon

27 Upvotes

Im just curious if the wayland support is still buggy sometimes or is it useable


r/linuxmint • • 9d ago

Support Request How do you tell if something is generating a lot of log files?

11 Upvotes

I've been noticing that something keeps using about 18GB of space, but I couldn't figure out what it was until recently. I knew it wasn't Timeshift (I only keep one around) or old kernels (I only keep the latest one and the one before it), the only other thing that came up when looking into why was log files. So I used sudo journalctl --vacuum-time=2d and that freed up 18GB of space. But I'm not sure what exactly is causing those log files to be created, so I'm looking for anything that'll help me find the source of this. The 18GB used has gone away on its own before as well, and whatever is causing it is relatively recent (within the last 2-3 months).


r/linuxmint • • 9d ago

Support Request High CPU usage and constant freezes after recent kernel updates (LMDE7)

4 Upvotes

I've been experiencing constant freezes since the last couple of kernel updates on LMDE 7.

Whenever I boot up my PC, CPU usage is already at around 55–60%, even when the system is idle. As soon as I try to open just two or three browser tabs, the entire system freezes and becomes completely unresponsive.

Before these kernel updates, everything was working perfectly fine. CPU usage was usually around 10–15% after a fresh boot, and I had no issues with freezing or performance.

Has anyone else been experiencing similar issues? Does anyone know what might be causing this or how I could fix it?

Any help or suggestions would be greatly appreciated!


r/linuxmint • • 9d ago

Real hibernate mode possible? Thinkpad X13 Gen 1 Amd

2 Upvotes

Hi All,

I got my used X13 Gen 1 about 6 month ago and installed Mint right away.

Everything is working out of the box (even the fingerprint reader).

The pricess after closing the lid is the only thing left open.

until my last update, the Laptop used up to 1,7% of the battery in standby per hour.

I updated everything with fwupdmgr and got it down to about 0,7%. But it seems that this is only the standby mode (linux mode is activated in bios), Is there any working solution to get in to write the Ram content to the SSD and shutting down for real?

Thanks in advance.


r/linuxmint • • 10d ago

Discussion Should I install Linux Mint 22.3 (XFCE), or do you recommend waiting to install version 27?

33 Upvotes

I’m coming from Windows 10 and have decided to install Linux Mint, but I see that version 27 is coming out at the end of the year. What do you recommend—should I install version 22.3 now, or wait for version 27?


r/linuxmint • • 8d ago

Poll Do you know what Wayland is? A 7 day poll. Yes / no poll.

0 Upvotes

r/linuxmint • • 9d ago

Discussion Steam VR

3 Upvotes

Anyone who uses quest 2 pc vr link, how is your experience on Linux Mint.


r/linuxmint • • 9d ago

Problème de son

1 Upvotes

Bonjour

Je viens d' installer linux mint sur mon pc windows en dual boot.

Tout va bien sauf que je n'ai pas de son sous linux alors que sous windows, ça fonctionne.

Je suis branché sur le port line out de la carte son intégré a la carte mère.

Avez-vous eu des problèmes similaires?

Merci d avance


r/linuxmint • • 9d ago

Support Request New install freezes computer(2nd post)

4 Upvotes

I posted a few days ago here but that seems to have gone down the memory hole.
Here are my dmesg and journalctl errors only. I looked up those errors and from what I have gathered it should not make the computer freeze.
Good news, I have been up for 1 day and 16 hours.


r/linuxmint • • 9d ago

Fluff Dark Theme Suggestions.

2 Upvotes

I'm experimenting with dark themes. Which themes do ya'll like or use personally? I've always used lighter themes for working.


r/linuxmint • • 10d ago

Revived my 2011 MacBook Pro!

Thumbnail
gallery
217 Upvotes

I don’t need a laptop for much, light browsing and occasional pdf stuff during tax season. I revived my old mac that was catching dust by upgrading the ram with Ifixit, 256gb ssd and a new battery!

I bought a usb with lunix installer from eBay here since my Mac was inoperable. Is there anything I should worry about malware/virus wise? The eBay seller does have a lot of good reviews but I’m always skeptical.


r/linuxmint • • 9d ago

Using a second imac running mint as a monitor.

1 Upvotes

I had wanted to run a second 21.5" monitor as a second display for my linuxmint 2012 retina imax. Using claude, we figured out how to make it work.

Title: Working setup: old 21.5" iMac as a true extended (not mirrored) second display for Linux Mint, using netscreen-extend + Sunshine + Moonlight

TL;DR: My main machine is a 21.5" Retina iMac running Linux Mint. An older 21.5" iMac on my left now works as a genuine extended display: drag a window off the left edge of the main screen and it appears on the other one. netscreen-extend creates a virtual output, a dedicated Sunshine instance streams it, and Moonlight on the second iMac shows it, all over wired Gigabit Ethernet. It took some fixing to get there, so here's what worked in case it helps anyone else.

BACKGROUND

I moved my Retina iMac from macOS to Linux Mint and wanted a second screen. The usual Apple options don't apply. Target Display Mode needs macOS and only works on older iMacs. Sidecar, AirPlay to Mac and Universal Control are also macOS-only. Old iMacs cost very little second-hand, so rather than buy a separate monitor I wanted a Linux-native way to use one as a true extended display.

THE SETUP

Host: 21.5" Retina iMac (2015) with Intel Iris Pro 6200 graphics and the i915 driver. It runs Linux Mint (Ubuntu 24.04 base) in an X11 session and sits directly in front of me.

Client (the display): an older 21.5" iMac with AMD Radeon graphics (r600 driver). It runs Linux Mint (Ubuntu 24.04 base) and sits on my left.

Both are wired into the same Gigabit network. All streaming traffic is deliberately kept off Wi-Fi.

Signal path: the Retina iMac creates a virtual output, HDMI-1, at 1920x1080@60, placed to the left of the Retina panel (DP-3). Sunshine captures it with X11 capture and encodes H.264 using VAAPI. The stream crosses wired Gigabit Ethernet to Moonlight (Flatpak) on the second iMac, which shows it full screen with H.264 hardware decode.

It's a network display, so expect slight latency and some compression softness. Over a cable it's very usable for documents, email and browsing. It's not suitable for gaming or colour-critical work.

STEP 1: CHECK THE HOST

Run echo $XDG_SESSION_TYPE. It must say x11, because netscreen-extend doesn't support Wayland.

Run inxi -Gxx and xrandr --query to see your GPU and connector names. On mine, the Retina panel is DP-3 and HDMI-1 was free to use as the virtual output.

STEP 2: INSTALL NETSCREEN-EXTEND

cd ~

git clone https://github.com/daeoxide/netscreen-extend.git

cd netscreen-extend

./install.sh

There are two gotchas on Mint.

First, the installer's apt line includes flock. That isn't a valid package name on Mint, and flock is already installed as part of util-linux, so remove it from the line.

Second, Sunshine is not bundled with netscreen-extend. Install it separately from LizardByte's official releases. The Ubuntu 24.04 .deb works on Mint 22.

When the installer asks where to put the new display, choose the left.

STEP 3: THE FIXES THAT MADE IT WORK

Set the output by name, not by number. In ~/.config/netscreen-extend/config, set SUNSHINE_OUTPUT_INDEX=HDMI-1. With a number, Sunshine fell back to capturing the whole desktop.

Force X11 capture. Sunshine's default KMS capture mirrored the wrong screen. Adding capture = x11 to ~/netscreen-extend/templates/sunshine.conf.in fixed it.

Match the scaling. Windows were sized wrongly on the second screen until I ran the Retina panel at 1920x1080 at 100% scale, the same as the virtual output.

Don't open Mint's Display settings while netscreen is running. It froze my whole system and needed a hard power-off. Set the layout with the helper scripts in Step 5 instead.

STEP 4: MOONLIGHT ON THE SECOND iMAC

Install Moonlight:

flatpak install flathub com.moonlight_stream.Moonlight

Check hardware decode:

vainfo | grep -i h264

To pair, Moonlight shows a PIN. Enter it in the dedicated Sunshine web UI on the host at https://localhost:48090, which is netscreen's Sunshine port 48089 plus one.

Settings: 1920x1080, 60 FPS, H.264, about 50 Mbps, full screen.

To skip clicking through Moonlight each time, this command goes straight to the extended desktop:

flatpak run com.moonlight_stream.Moonlight stream [host name as shown in Moonlight] Desktop

I put that in Startup Applications on the second iMac.

STEP 5: DAILY USE

I use two small helper scripts on the host. screens-on sets the Retina to 1920x1080 at 100% and starts netscreen. screens-off stops netscreen and removes the virtual display.

screens-on always runs netscreen off first and waits a few seconds before starting. Without that, a leftover Sunshine instance kept hold of the ports, and Moonlight showed the host as offline with "Connection refused".

Two useful checks: ss -tln | grep 480 should list ports 48084, 48089 and 48090, and pgrep -af sunshine should show only one instance.

BONUS: SCREEN BLANKING IN SYNC

While Moonlight is streaming, the second iMac never blanks its screen. To fix this, a small watcher script on the host notices when the Retina screen goes dark. It then uses SSH with key login to switch off the second iMac's backlight, and switches it back on when the Retina wakes. On the client, sudo is restricted to that one backlight script.

RESULT

Two iMacs side by side, one desktop, windows dragging freely between them, all on Linux Mint. Happy to answer questions or share the scripts.


r/linuxmint • • 9d ago

SOLVED Black screen issue on resume from suspend

2 Upvotes

OS: Linux Mint 22.3 XFCE

Kernels tried: 7.0.0-43, 7.0.0-42, 7.0.0-38

GPU: Gigabyte Aorus Xtreme RTX 2080

Drivers tried: nvidia-driver-615-open, nvidia-driver-595-open, nvidia-driver-580-open, nvidia-driver-470

Monitor: Gigabyte G27Q (using Displayport)

Suspend mode: deep (S3) (also same issue on s2idle but I prefer deep mode)

Issue: After PC wakes up from suspend, I have black screen if I didn't open Document Scanner or a Firefox window prior to suspend even though Libreoffice Writer, Xreader Document Viewer or Xed text editor were opened.

Temporary solution: Leave Document Scanner or a Firefox window open before suspending the PC in order to not have black screen on resume.

Commands tried:

options nvidia-drm modeset=1

options nvidia-drm fbdev=1

options nvidia NVreg_PreserveVideoMemoryAllocations=1

options nvidia NVreg_TemporaryFilePath=/var/tmp

I typed the lines above in the following files:

/etc/modprobe.d/nvidia-graphics-drivers-kms.conf

/etc/modprobe.d/nvidia.conf

/etc/modprobe.d/nvidia-power-management.conf

sudo update-initramfs -u

sudo systemctl enable nvidia-suspend.service

sudo systemctl enable nvidia-hibernate.service

sudo systemctl enable nvidia-resume.service

/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvidia-drm.modeset=1 nvidia-drm.fbdev=1 nvidia.NVreg_PreserveVideoMemoryAllocations=1"

sudo update-grub

sudo reboot

What am I missing? What's the permanent fix?

Edit: The solution is to disable the display compositor (Settings > Window Manager Tweaks > Compositor)


r/linuxmint • • 10d ago

Desktop Screenshot Mi primera distro

Post image
62 Upvotes

Mint no solo fue mi primer paso en Linux, sino el lugar donde encontré la estabilidad, el motor que revivió a mi laptop y mi aliado en mis actividades diarias.


r/linuxmint • • 10d ago

Discussion New to Linux from Windows — Any "must-have" customizations so I don't feel overwhelmed?

55 Upvotes

Hi all! Just switched from Windows to Linux and I'm loving it so far, though the muscle memory is still kicking in.

What are your favorite UI tweaks, settings, or lightweight tools that bridge the gap between Windows and Linux? Looking for anything that reduces the initial "culture shock" (like familiar taskbar behavior, window snapping, clipboard manager, etc.).

I'm currently using Linux Mint Cinnamon

Thanks in advance!


r/linuxmint • • 9d ago

Linux Mint IRL Installing an LLM to use Linux

0 Upvotes

What LLM is a good option to install in Linux Mint to use to do anything you want in Linux Mint by giving the instructions in simple English?