🌉 bridged from @glitching@lemmy.ml by Tidepool
glitching
@glitching.lemmy.ml.ap.tdpl.io
Disabling discrete graphics (Nvidia/AMD/ATI) on Macbook Pro 2010/2011/2012/2013/2014
cross-posted from: https://lemmy.ml/post/42330116
in this inaugural post to !linux_on_mac@lemmy.ml we'll disable discrete graphics on a Macbook Pro and make the thing run exclusively off the Intel graphics. reasons aplenty; 2010/11 models have their share of failed GPUs. those can be disabled with this trick and you get a fully functional machine that would otherwise necessitate a costly repair or it'd be thrown out, due to its age. GPU and/or GMUX failures continued on post-2012 retina models; folks used those anemically cooled laptops for gaming, with predictable consequences. finally, if you want to switch to linux, the discrete graphics complicates your life significantly. this method works on all the models listed in the subject; if you know it works on other ones, please let me know and I'll add it. the only downside, you'll lose video out as it's connected to discrete graphics. so, boot off a macOS installer or your existing macOS partition, open the terminal and go:
nvram GfxMode=4(prepend withsudoif it's from an interactive shell) (todo: how to add the EFI variable from linux) and reboot. that's it, your discrete graphics is gone. it's not present in lspci output, system report, etc. not only that, it's no longer drawing power netting you a cooler system and longer battery life. there were earlier versions of this with some GRUB shenanigans followed by some kext/systemd magic, but thanks to the awesome folks at macrumors that's no longer needed.Disabling discrete graphics (Nvidia/AMD/ATI) on Macbook Pro 2010/2011/2012/2013/2014
cross-posted from: https://lemmy.ml/post/42330116
in this inaugural post to !linux_on_mac@lemmy.ml we'll disable discrete graphics on a Macbook Pro and make the thing run exclusively off the Intel graphics. reasons aplenty; 2010/11 models have their share of failed GPUs. those can be disabled with this trick and you get a fully functional machine that would otherwise necessitate a costly repair or it'd be thrown out, due to its age. GPU and/or GMUX failures continued on post-2012 retina models; folks used those anemically cooled laptops for gaming, with predictable consequences. finally, if you want to switch to linux, the discrete graphics complicates your life significantly. this method works on all the models listed in the subject; if you know it works on other ones, please let me know and I'll add it. the only downside, you'll lose video out as it's connected to discrete graphics. so, boot off a macOS installer or your existing macOS partition, open the terminal and go:
nvram GfxMode=4(prepend withsudoif it's from an interactive shell) and reboot. that's it, your discrete graphics is gone. it's not present in lspci output, system report, etc. not only that, it's no longer drawing power netting you a cooler system and longer battery life. there were earlier versions of this with some GRUB shenanigans followed by some kext/systemd magic, but thanks to the awesome folks at macrumors that's no longer needed.How Linux Saved My Hardware - 5 stories from recent years
#1 my most recent example is a Macbook Air 13 that I chimera'd out of three different machines; awesome that 2012-2017 models have interchangeable parts. was lucky and one of the boards had 8 GB RAM, a rarity back then. alas, the only battery I got has barely 60% capacity and zillions of charge cycles and I ain't too keen on spending money on a replacement. ok, so shit autonomy, be happy you got a workstation for like $15 in total and run it thusly. except, this one shuts off even if there's like 70% remaining and subsequently won't power on without a charger - kinda big deal for a laptop. I imagine not all its cells are up to spec so when it reaches a threshold it cuts out. under macOS, the SMC lets it sip power and when you attach a charger it just wakes as you left it. linux ain't that cool, when you connect power - all your unsaved work is gone. what linux does have is
intel-undervolt. just a smidge of -50mV was enough to remedy the issue. after a coupla days, moved it to -75mV, still perfectly stable; at -100mV it occasionally KPs. so a thing that was unusable away from a charger is again a mobile device, netting me 4+ hours of light use and almost a week of standby! #2 eons ago I had a Thinkpad W520; at least I think that was the model - a 15.6" with the chunky, 7-row keyboard sans numpad. lenovo stabbed me in the heart when they decided that all subsequent models must rock the annoying numeric pad, making you type off-center and... anyhoo, the one I got, had a partially damaged screen, about 100ish pixels wide and super irritating, flashing constantly. replacing it wasn't in the budget and relying on an external monitor was a no-go... helloxrander! that thing allowed you to cut off a part of the screen and that's what I did - converted the 16:10 to something more like 4:3. not only that, a friend taped over the busted part with some carbon-like decal making it look super sick! I'm still trying to find a picture from way back when but no luck so far... not only did I get a super usable machine, it was the coolest workstation by far - maxed out RAM, three SSD/HD in there... well, as cool as those things can be, anyways... #3 a few years back, I got a 13" Yoga, forgot the model, for pocket change. dual-core i5 and soldered 8 GB RAM, gorgeous screen, awesome battery - but it constantly blue-screened. break out the mint USB with memtest, and yepp - errors. dogdamn, no way can I afford to fix this thing and if I try desoldering those things, Imma burn the house down. and break the thing even further... enter GRUB and its BADRAM feature! you can exclude arbitrary region(s) of RAM and the OS that boots after it will be none the wiser - it just uses the rest. and verily, it worked without issues, used it for years and I believe it still works to this day with his current owner. #4 got a kernel-panicking Macbook Pro 15 Mid2010 for next to nothing. those things died en masse, the issue was a capacitor that drove the Nvidia chip. any strain or excess power consumption and the thing gave out and the OS crashed. the fix was/is simple - disable the Nvidia chip via EFI variable and use just the Intel HD graphics. you lose display out but gain a cooler machine, longer battery life, and you get zero issues with linux. having fixed it, I installed linux and wanted to upgrade the RAM to 8 GB. alas, no sticks I found would work in the thing. turns out, the fucker only takes 1066 MHz RAM. I totally lived with the conviction that if you stick faster RAM into slower hardware, it'll run it slower, but apparently that ain't so. so tried bartering with junkers, I'll give you my 1333 RAM, you gimme yours - no takers. buying stuff for something that cost me less than $10 was out of the question... turns out, you can use linux to reprogram the SPD data on the RAM module! you change its identifier to 1066 and the macbook recognized it as such. furthermore, you don't need to patch both sticks, if one is 1066 it can run the other at 1066 as well - so you can run 'em slower! no idea if this is an apple thing or its widely present, but I got a functioning workstation for free! edit: here's the link #5 finally, the Dell Latitude 5285. that's a 2-in-1 tablet with detachable keyboard that I got without the battery. it had okayish specs, the i5-7300u is nothing to get excited about but it had 16 GB LPDDR3 soldered on. the touch display is beyond gorgeous - 400-nit 1920x1280 IPS and the intel graphics shipped the full 4K @ 60 Hz to my monitor via DP-Alt. the only problem - the fucker won't boost past 400 MHz without the battery! buying the thing is out of the question (y'all notice a pattern here, right?) so what are we to do... thankfully, we gotmsr-tools. the thing can patch CPU's registers and en/disable some things, and one of them is BD_PROCHOT. that signal makes the CPU throttle on account the heat, it's also triggered if anything is amiss - touchpads disconnected, battery not present, etc. what's needed is read outrdmsr 0x1fcif memory serves correctly, and then you add one bit to the read out state and write it back withwrmsr 0x1fc 0x1xxxxxet voila - speedsteps up to 2.7 GHz, a quick systemd script to make it permanent. it won't turbo, to 3.3 GHz or sumsuch, but this was more than enough for everyday use. thanks for reading! y'all got any stories how linux can save your ass without spending money? share it with the class!anyone using the P106 cards?
so I got these things available locally for $10-20. them is headless GTX 1060 6 GB used during the mining craze, with no way to add on a display out. there's a hack to use it with windows on Haswell and newer boards with iGPU.
there's got to be some use for the things, video transcoding, LLM (can they be run in parallel?), or maybe (spitballing here) sunshine server?
anyone had experience with them?
Laser printer prints a mess
cross-posted from: https://lemmy.ml/post/37035021
hi everybody! found an abandoned HP Laserjet 1020 in the dumpster. got it home, cleaned it and fitted the toner cartridge. it installed fine, prints fine, except the mess all over the paper (see pic). now I haven't had to do with printers in at least a decade, but I seem to remember it's something with the thing inside the toner cartrdidge, so replacing the cartrdige should fix it. can someone confirm this, as I can't really afford to waste money if it's something inside the printer. thank you!
Laser printer prints a mess
hi everybody!
found an abandoned HP Laserjet 1020 in the dumpster. got it home, cleaned it and fitted the toner cartridge. it installed fine, prints fine, except the mess all over the paper (see pic).
now I haven't had to do with printers in at least a decade, but I seem to remember it's something with the thing inside the toner cartrdidge, so replacing the cartrdige should fix it.
can someone confirm this, as I can't really afford to waste money if it's something inside the printer. thank you!
stacking macbooks - dead screen!1!!
in today's episode of "el stupido stupids around", our hero wants to look up something on a MBP 15 2015 (retina). problem is, there's already a 2010 (fatso) occupying space on the desk. is hero gonna move fatso aside to achieve said goal? 'course not, close fatso and place the retina on top. haha look at my lazy ass being expeditious!
power on the retina and... black screen. no idea what's going on as there are no status lights - thanks apple... is the battery empty, dead, wtf, no way, how can this be? bring over Magsafe 2 charger, plug in, try now... same thing. what the fuck, it's dead? maybe open it and disconnect the battery and try with magsafe only...
in a rare flash of mindfulness hero unstacks the laptops and... there we are, screen lights up, plymouth's decrypt screen is visible and all is good!
what happened is macbooks detect the screen is closed by way of magnets. so, a reed relay closes, SMC says "ok we closed, turn off screen". since there was another macbook beneath it, its magnet array got detected and retina's screen was turned off.