18 ms·
A Linux Evening
- pantalaimon 4y agoI mean it's obviously a kernel bug. Now I wonder if it's nice to have a way to work around them, or if these work arounds are detrimental to them ever getting fixed properly.
- kyrofa 4y ago> I spent several hours fixing a problem and I learned next to nothing in the process. This seems like the wrong attitude to me. It's the perfect opportunity to dig into what those kernel params do! Understand _why_ that fixed the problem.
- rep_movsd 4y agoJust googling "No bus number available for hot-added bridge" gives hundreds of results
- blueflow 4y agoI didn't knew PCIe hotplug works at all!
- l1k 4y agoYou'd be surprised. Here's an article I wrote on the modernization of PCIe hotplug in Linux: https://lwn.net/Articles/767885/ https://lwn.net/Articles/767885/
- artemonster 4y agoI hate linux for this. How the hell a modern OS can be frozen completely shut by some runaway python script running in a VS code debugger, to a point that you have to kill your PC with a button. And then non-obvious issues that just "appear" out of nowhere and steal your perfectly fine evening where you have planned to work on your favorite side project.
- tuukkah 4y agoHow is your comment related to the article? The only connection I can see is bad quality of some hardware and drivers.
- emsy 4y agoIt’s a reappearing issue with Linux that you run into problems other operating systems don’t have to this degree. Which is sad, because seeing the direction Windows 11 is heading towards, I’d like for Linux to achieve widespread adoption.
- deafpolygon 4y agoIf you want that, then use it and contribute. That's the only way widespread adoption will happen. Contribution does not necessarily mean code. It can be documentation, design, UX, sharing information, or just working getting people familiar with Linux.
- simion314 4y agoThis is false. My story, I bought a new widget, a gaming wheel a few years back, and it did not work on my Windows machine, I even reinstalled Windows, installed the drivers from disk it did not work. I send the thing back and report it broken and the guys call me to report that works perfectly. In the end I bought a different model that worked both on Windows and Linux. So a gadget with official Windows support did not work on my machine, even after I wasted my time reinstalling Windows just in case but worked fine for some support people. I had a diffrent experience with a USB WifFi antenna , it come with a mini CD with drivers but my PC had no CD Drive, there was no online source for that no name brnd. I plugged it on a Linux machine and it worked, then I done a lsusb and found the real chip powering the device, then Googled for that I found a compatible Windows driver on a drivers website and I fixed it for Windows machine. Linux has problems, but install a LTS distro on compatible hardware and you should not have issues for a few years. To balance things, my latest bad experience in KDE was when Kwin crashed and refused to enable compositing again printing a vague reason in the logs, I found using Google that KWin put an isOPenGLSafe=false in soem log file and refused to start compositing but for some reason (maybe is a valid one) was incapable to print also that "I refuse to start compositing because of this setting - lesson for us devs, when we put stuff in log messages, put as much info as possible
- luc_ 4y agoBeen there... Especially when I was in high school with older Ubuntu flavors and trying to dual boot Windows. Booting constantly got fucked up.
- quijoteuniv 4y agoYes, sometimes you land in these situations in Linux, but many times are self inflicted by unnecesary tinkering. I cannot see why dealing with all the … unwanted things from windows can ever be better. With mac if it is too new it will not be supported and after a few years you need to upgrade your hardware or are left to die. Apart from being an exclusive system for the rich.
- sph 4y agoThis is why I run Fedora Silverblue. My Linux is now an appliance that upgrades atomically. If something breaks, I rollback. Once in a while, I pin a version that is known to work so it never gets garbage collected. The other day I changed /etc/ld.so.conf and the system would not boot—my fault. I choose the previous deployment in GRUB and I had a working system back.
- _8j50 4y agoA lot of my problems are from tinkering as well but that's why I am using linux, to control it better and tinker with it. Why won't I just use macos if I wanted something I can't tinker with? I think people lose sight if why Linux even exists to begin with, it is all about user control and ability to tinker/hack it. I think better UX and more configurability would solve this stuff (from a friendly interface). The reason desktop/distro people won't do that is because it is considered bad UX practice to have too many decisions for the user. But imo, a Linux user would be an exception. In an ideal world, whoever decided to disable the boot flag in this case should have provided an easy to access distro/de setting to flip it back on.
- noisy_boy 4y agoCouldn't agree more with the takeaways. Especially #3 - and it is exacerbated if you are a finicky person who wants everything exactly the way you want it + loves to customize and tinker. Linux basically keeps me hooked by virtue of catering to those needs even though I have to deal with these Linux evenings (which are thankfully getting rarer over time). In time too because my tolerance is depleting as I age and have decreasing bandwidth to deal with all that. Also the reason I always dual boot with Windows. I also have a somewhat interesting usecase that doesn't let me switch to Mac (not that I am keen to). If I buy a Mac, I will have to switch my phone to iPhone too because integration with Android isn't nearly as good. However I _must_ have a dual sim phone (which is fairly easy with Android) and there aren't any dual sim models of iPhone.
- vladvasiliu 4y ago> and there aren't any dual sim models of iPhone. Aren't phones with an eSIM + regular SIM effectively dual-SIM? I'm pretty sure iphones have those.
- muststopmyths 4y agoYep, my SE2020 is like that, and was sold in the US
- robin_reala 4y agoThere’re also real dual-SIM iPhones, but they’re market restricted (typically to China). Docs for SIM + eSIM: https://support.apple.com/en-gb/guide/iphone/iph9c5776d3c/ios https://support.apple.com/en-gb/guide/iphone/iph9c5776d3c/io... Docs for dual physical SIM: https://support.apple.com/en-us/HT209086 https://support.apple.com/en-us/HT209086
- nneonneo 4y agoI used to have a dual physical SIM iPhone X from China! However, when I sent it in to get (warranty) a local Apple repair shop screwed up and replaced it with a North American model. After much gnashing of teeth with Apple Support, I wound up with a new iPhone 12…but no dual physical SIM. Now my phone is still confused after restoring from backup and cannot see the eSIM. I’ve been filing feedbacks and radars to no avail. If I was on Android I’d have just rooted it and deleted the offending (mis)configuration file already!
- DoctorOW 4y agoSide note: I've been working on creating a new blog now that I've completed my name change (and whatever other aspects of my transition affect my public persona). This blog's minimalism is still distinctively styled and I'd like to do something visually similar. The choice to make it black-on-light-gray is somewhat pleasing. Has a consensus been reached on dark styling affecting readability?
- sph 4y agoSome like it, some overdo it. Apparently many live in darkened caves and use dark mode all day. And for me too much contrast in dark mode means harder to read because the white bleeds into the background. YMMV.
- deleted 4y ago[deleted]
- _8j50 4y agoI said linux was fragile the other day and someone replied "in what way", this post is a good answer. In the past also I had similar critiques to my own criticism of Linux. Who knows how many total days and weeks I spent on random things like this and all the obstacles I had to overcome. Just to get secure boot working on debian, I had to overcome their block of my vpn IP on their wiki, and the sign-tool which is impossible to find and after a lot of googling found an ubuntu post suggesting a weird kernel version speicific path that worked but the builtin vbox kernel module signing thing can't find it during apt update so at each kernel update I have to manually sign vbox modules (which means making the privkey readily available and defeating the whole point but whatever), at least I made a small script that only needs my secureboot pin/pass now. And then I decided to use apparmor, which is nicer than selinux but it took weeks to lockdown two apps and have them work and I am still not confident I did it right. Ok,ok... let me pause there because I could go on. In my current day job, I attribute my success to two things: 1) Using linux for many years and fighting these "stupid" battles 2) I learned C which made learning a lot of other stuff a lot easier. I work in security now, so when there is a linux or container/k8s related incident it is easier for me than for my colleagues. I also don't shy away from difficult technically complex incidents or problems because I am battle-hardened in the art of figuring out seemingly random problems in topics I know nothing about with the sheer power of search engines, docs and random internet posts. When I worked my first k8s incident, I knew nothing about it. I was watching talks by google people on one window while reading docs on another and poking around in the gke node scratching my head on why the hell a k8s node is running chromeos and everything is readonly. But all of that is a piece of cake. Try random browser crashes because weird grsec/pax patches (before they closed it off) that were messing with jit or untangling a dependency mess on a gentoo install neglected for years which doesn't even have a supported python version now. The brutality and fragility of Linux has given me a lot of mental muscles that has helped me immensly and it has forced me to be distrustful of software in general and learn a lot of stuff from programming languages to permission models, os architecture and gnu tools like sed,grep,awk and the like. But yeah, I love linux so much but let's not pretend it is easy to use or user friendly. But hey, 2023 will be the year of the Linux desktop so we'll see. A lot if *nix philosophy and mentality like "RTFM" and defaults not being a big deal I think are from an era where the ecosystem was much less complex and the userbase was much smaller. I attribute many of these pain points to that undying mindset.
- l1k 4y agoThunderbolt devices appear in the OS as a PCIe switch, so you need two additional bus numbers (one for the Switch Upstream Port and one for the Switch Downstream Port). If the device is hotplugged to a port which has run out of bus numbers, you'll get this error message. Mika Westerberg is constantly fine-tuning the allocation of PCI resources in the Linux kernel to avoid such scenarios. Some recent patches: https://lore.kernel.org/linux-pci/20220905080232.36087-1-mika.westerberg@linux.intel.com/ https://lore.kernel.org/linux-pci/20220905080232.36087-1-mik... https://lore.kernel.org/linux-pci/20221130112221.66612-1-mika.westerberg@linux.intel.com/ https://lore.kernel.org/linux-pci/20221130112221.66612-1-mik... On macOS, it's possible to pause the PCI bus, reallocate resources and unpause the bus: https://developer.apple.com/library/archive/documentation/HardwareDrivers/Conceptual/ThunderboltDevGuide/Basics02/Basics02.html https://developer.apple.com/library/archive/documentation/Ha... (search for "Supporting PCIe Pause") We don't have that on Linux unfortunately, so we depend on getting the initial resource allocation right. Sergei Miroshnichenko has worked on such a reallocation feature for Linux but it hasn't been accepted into mainline yet and he hasn't posted a new version of his patches for almost two years, so the effort seems stalled: https://lore.kernel.org/linux-pci/20201218174011.340514-1-s.miroshnichenko@yadro.com/ https://lore.kernel.org/linux-pci/20201218174011.340514-1-s....
- nneonneo 4y agoIt sounds like the pause/unpause might be the way to fix this properly, since trying to be heuristically smarter sounds like a recipe for never-ending corner case bugs like the OP’s issue. The patch for pausing and unpausing seems quite reasonable, except that it does require driver support (unsurprising - you’re literally reallocating the resources used by the driver!). I suppose if you had at least a few movable devices then you should be ok in the event of a hotplug event, so you’d have to hope that enough drivers bother to support the feature. I wonder what is necessary to get people to care about the patch enough to fix it up and mainline it? I suppose the problem it fixes is still niche enough that not so many people are clamoring for the fix.
- AnIdiotOnTheNet 4y agoWhat is the point in having all of the drivers be open sourced and mainlined if we're not willing to fix them to support this?
- dark-star 4y agoI had a similar experience recently. Updated my Manjaro setup, rebooted, and was greeted with text mode. X just didn't load. 1 hour of reading logfiles and pondering about why the kernel module wouldn't load, it turns out I needed to add an obscure boot parameter (I think it was something like "ibp=off") to my kernel command line to make the nvidia module load again. Easy solution if you know how to solve it, 1 hour searching for that solution, and about 0% chance of that knowledge ever being useful again in the future. In the end I was still satisfied because at least I learned something (no matter if it's useful or not), and I was under no pressure to get that particular Linux system working again (I could still dual-boot Windows for example).
- AnIdiotOnTheNet 4y agoAnymore these days if it only takes me an hour to wade through all the reinstall/switch distro garbage to fix some obscure nonsense problem I count it as a win.
- leidenfrost 4y agoI had a similar experience with a workplace machine. It worked flawlessly. But, sometimes, I went to make myself coffee or to the bathroom, and when I was back, the system just never woke up from sleep. I try setting the machine to sleep and manually waking it up. No problem. Later, I spent some time watching a long youtube video, then I opened the terminal and then the OS crashed. Dmesg? It showed nothing But, sometimes, when I tried to launch the terminal, I tried running htop and then the OS hanged. I had the feeling that it was something HD related. I restarted the machine, updated the kernel, asked the forums, everything. No answer. It was my work machine. They let me install Linux but I couldn't spend so much time with the OS. I need to have work done. Otherwise I need to bail and go back to Windows (ugh). I was about to delete Linux from the laptop, but I had an idea: The machine was a Thinkpad T1. I looked on the Arch Wiki about compatibility with that laptop. If the problem came from an incompatibility with the hardware, it will surely show up there. The machine showed up in a list and according to the wiki, there's nothing related to a crash or a freeze. Then, I looked up on lshw if there was any piece of hardware that was different of what the Thinkpad has by defaults. The result? A Kingston 1TB SSD. I googled "Linux Kingston ssd lock up", "Linux Kingston ssd crash". It turns out, some Kingston SSDs don't support all the deep sleep levels of energy saving. I needed to switch some off with a kernel parameter. I never had any problems with that machine again.
- jeromenerf 4y agoKernel parameters are usually documented in the kernel-parameters.txt file in the source. See https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/kernel-parameters.txt#L4295 https://github.com/torvalds/linux/blob/master/Documentation/...: hpbussize=nn The minimum amount of additional bus numbers reserved for buses below a hotplug bridge. Default is 1. The way to get from the error "No bus number available for hot-added bridge" at https://github.com/torvalds/linux/blob/master/drivers/pci/probe.c#L3343 https://github.com/torvalds/linux/blob/master/drivers/pci/pr... to this specific kernel param is still a bit involved.
- zokier 4y agoThat doc string raises so many questions. First, it says minimum which to me implies that in some cases larger value is used, but no clue when. Secondly, why is the default 1 and what is the allowed range of values? Being 1 implies to me that there is some cost associated with the reservations, otherwise the default would be much higher? Is the 0x33 from the article completely random, would 2 worked just as well? What are the implications of using high value here?
- alkonaut 4y agoWhat's the approach used by OSes that "just work" for things like this? Is this due to the more monolithic kernel of Linux making more things required to be known up front than e.g. in Windows?
- jeffbee 4y agoIs there one? I know that unplugging a Thunderbolt peer will crash my MacBook Pro (bridgeOS, not macOS, panics). Disappearing buses is an edge case that is little-tested on most operating systems.
- kalleboo 4y agoHot-plugging Thunderbolt devices is hardly an edge-case on Macs, it's a heavily advertised feature. I had about weekly kernel panics or machine freezes (would not wake from sleep) while unplugging my Thunderbolt dock (with displays and lots of devices) all throughout the USB-C Intel Mac era, but they all went away when I got an M1 Pro machine, so I wonder how much is down to OS design vs drivers vs hardware (vs how specific hardware influences driver design).
- hacb 4y agoAbout take away #2: > I spent several hours fixing a problem and I learned next to nothing in the process. This trick is unlikely to be useful again. By the time I encounter something similar, it is likely I will have forgotten about the solution. This is why it is important to keep a personal knowledge base/documentation. Mine is full of things I'll probably never encounter again, but I know it may be useful one day or another.
- npteljes 4y agoAlso, it's not like OP haven't learnt about kernel parameters. Often not just the dicrete knowledge itself, but also the way of arriving at it is just as useful.
- vid 4y agoSomeone should tell the author about the great lshw, it lists full details of the system board (and everything else) without having to go to a GUI display. azalp description: Desktop Computer product: B660M AORUS PRO AX DDR4 (Default string) vendor: Gigabyte Technology Co., Ltd. version: -CF serial: Default string width: 64 bits capabilities: smbios-3.4.0 dmi-3.4.0 smp vsyscall32 configuration: boot=normal chassis=desktop family=B660 MB sku=Default string uuid=dotdotdot People posting those CPU and SSD screens shots rather than, say, some linked data that contributes to make a graph to forums has such a deleterious effect on people's ability to reason. I suppose eventually we'll end up screen scraping the screen shots.
- deleted 4y ago[deleted]
- ragingrobot 4y agoAlso, dmidecode is very handy. # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 2.7 present. Handle 0x0002, DMI type 2, 15 bytes Base Board Information Manufacturer: Dell Inc. Product Name: 02##K5 Version: A01 Serial Number: /BGK####/CN#######/ Asset Tag: Not Specified Features: Board is a hosting board Board is replaceable Location In Chassis: Not Specified Chassis Handle: 0x0003 Type: Motherboard Contained Object Handles: 0
- hackeraccount 4y agoThis. I generally have few problems with the people I work with one exception is when they start posting screenshots on Slack. If it's some gui and you can't get a good export then I understand the frustration - but this will be a screen shot of terminal. Why? I mean do you hate the future? Did a month from the present beat you up as a child? Perhaps when you were 10 years old 2 years from now kicked sand in your face and now you're going to punish it. I don't know. But they need to get over it for everyone's sake.
- trynewideas 4y ago
- gbin 4y agoThe thing is.... You found a solution and if you wanted to understand you can always look at the kernel doc. When a similar thing happens in Windows, you are just done... Not only you have a very slim chance of not having to reinstall everything but even less understanding what is happening (ie. Probably an intern that committed something in some close source driver than will be silently fixed some day).
- asoneth 4y agoIf you are someone who can read and understand the kernel doc then I agree that you can be more efficient in Linux. For the vast majority of the population the response to errors is identical on both platforms: reboot, internet searches, learn to live with it, or reinstall and hope for the best.
- bitwize 4y agoSimilar things rarely happen in Windows because Windows has a stable kernel ABI and developers can, do, and are incentivized to supply drivers for their hardware.
- markus_zhang 4y agoThis occcurs every time I decided to dab into Linux. Usually I got the answer from a random search on stackoverflow and never managed to understand what happened. But I think it's OK. I have always had an interest in system programming and that's why I wanted to dab into Linux. But system programming is not a shiny, whole smooth thing one may imagine, but is quite messy all the time. I simply got what I wanted.
- mkl95 4y agoI have had my share of Linux Evenings. They built my confidence when it comes to troubleshooting system stuff, and they eroded my confidence in Linux for a while. Things are incredibly stable these days compared to even half a decade ago.
- prmoustache 4y agoThe good thing is after an evening you usually find a solution. While one some proprietary systems the solution is usually "you are fucked deal with it". Having said that it has been litterally years since I had this kind of problem. Checking if people have issues with devices on linux distros before buying actually works really well. I just don't buy the things that don't work. Kind of like checking at the back of the box if it is <insert os of choice> compatible.
- INeedMoreRam 4y agoWhich do you think is more clear? Half a decade ago? Or, 5 years ago?
- LBJsPNS 4y ago60 months ago.
- postit 4y agoThat’s where Linux burned all the bridges on being my main machine. Nowadays, I cannot afford to take a day off to fix obscure incompatibilities like this. The last straw to me was when I stored my closed lid xps in a bag and 3 hours later everything was smelling like burning plastic because the computer suspend suddenly stoped working. To get things worst, it happened during a long haul flight.
- JW_00000 4y agoSuspend on my MacBook Pro also didn't work for >1 year, but seems to be magically fixed now. All OSes have annoying bugs in my experience.
- eythian 4y agoI seem to recall Dell saying that you should never store a suspended laptop in a laptop bag, because there are situations where it might wake up and overheat.
- vq 4y agoYou recall correctly. https://www.dell.com/community/XPS/FAQ-Modern-Standby/td-p/7514448 https://www.dell.com/community/XPS/FAQ-Modern-Standby/td-p/7...
- velox_neb 4y ago> I seem to recall Dell saying that you should never store a suspended laptop in a laptop bag, because there are situations where it might wake up and overheat. Which is the stupidest thing ever. I want to see Apple use this to shame Dell in ad.
- nicoco 4y ago> I spent several hours fixing a problem and I learned next to nothing in the process. This is probably true for this specific case here, but my experience with fixing stuff in Linux is actually the opposite. I learnt a lot doing so, and learnt stuff that turned out to be later useful in very unexpected spots. Back when I was a teen and using Windows, I've spent countless hours fiddling in stuff in regedit and other atrocities and it feels like I never learnt anything useful in the long run.
- revolvingocelot 4y agoUsually my go-to for "Linux problems" is "tear down the VM and start a new one", but a few days ago my Manjaro rig at home lost power, and bluetooth wouldn't work upon restart. I wracked my brain, pored through forum threads, man pages, and LFS, but nothing really helped. It looked like several different problems at once, but none of the individual fixes worked, or only worked for minutes at a time. I stepped away from the problem for a while, as one does, while I mused about the way troubleshooting works, and how my early life with Windows and now modern containerization has predisposed me to certain types of solu-- wait, I've got it! rmmod the bluetooth modules, modprobe 'em back in. Everything worked flawlessly. I'm not sure what I learned. *sigh*
- deltarholamda 4y ago>I'm not sure what I learned. "Have you tried turning it off and on again?"
- ectopod 4y agoExactly. My tendency is to jump in and try to root cause problems but nowadays the most productive solution is almost always some kind of a restart.
- ragingrobot 4y agoI've done this enough, but don't stop there as it's likely to happen again. When I resort to such a solution, I take a look at the syslogs. More often than not, something there will tell me why a simple restart of a service, module, whatever was the answer. I had a similar problem as the article with a standard USB 3 enclosure. Two PCs, identical OS (oS Tumbleweed), same kernel version even. modprobe -r then modprobe usbstorage and it worked. An obscure error in the logs pointed to the uas module which for some reason failed to reload, enabling the enclosure to work. Oddly, the other PC on which it worked was loading uas.
- johnchristopher 4y agoI almost prepped myself up this Friday evening for a solo Debian reinstall party to solve an extremely slow reading/writing on internal hdd/sdd problem until I accidentally realized the problem disappeared once I had removed my external disk from the docking station. Went from 2mb/s to 2gb/s r. and 800mb/s w. > I spent several hours fixing a problem and I learned next to nothing in the process. This trick is unlikely to be useful again. By the time I encounter something similar, it is likely I will have forgotten about the solution. So much this.
- deleted 4y ago[deleted]
- kibwen 4y ago> dkozel and your kind, whoever you are, wherever you are, and whatever you are doing right now, you are legend. Perhaps dkozel is reading this right now. :P https://news.ycombinator.com/threads?id=dkozel https://news.ycombinator.com/threads?id=dkozel https://lobste.rs/threads/dkozel https://lobste.rs/threads/dkozel
- Ygg2 4y agoLast comment was in 2020.
- dkozel 4y agoNow 2022. ;)
- dahston 4y agoSo, how did you find this fix?
- sceadu 4y agocue the segway
- dkozel 4y agoNo segway, I've posted a bit of a discussion above. Not all that interesting unfortunately. The error message was obscure but the problem space was pretty small so I did mostly the same thing as Fabian and searched online for related terms to PCIe hotplugging and PCIe address allocation.
- SpacePortKnight 4y agoOccasional issues like these is why I continue to run Windows even though Microsoft has been pulling off all sorts of shenanigans with telemetry, broken file manager / start menu, ads etc. I really want to move to Linux but unless my laptop manufacturer provides support, its never going to happen. I don't want to think my OS when buying a hardware accessary or a software product. A laptop's a tool and Windows still provides the most support.
- qup 4y agoWhat kind of windows support do you use?
- autophagian 4y agoFor takeaway 2, I've found using NixOS lately to be good at keeping myself disciplined about documenting the odd little hacks I've added to fix an issue. Like in this case, I'd have to add something to my boot.loader.grub.extraConfig setting, comment it and document it with a hopefully-useful commit message so that if I encounter something similar in future, I can at least look at those bits of documentation and hopefully connect the two.
- ssimono 4y ago+1 on this. I use to consider those Linux evenings as a waste of time. But with every bit of NixOS tracked within git with some history and context, I now think of it like an investment for the next 50 years, which has way more chances to pay back
- Arnavion 4y agoI don't use NixOS but I have a similar documenting approach to all my OS and $HOME config files. Every customized file / override is checked in to a git repo, and there's an `install.sh` that takes each such file / directory and copies / symlinks it from the repo to its target location. Basically the same concept as dotfiles, but also for system files. I've restored a couple of machines from OS reinstall to full readiness this way.
- _justinfunk 4y agoI used to hear "Linux is only free if you don't value your time." - this article seems to validate that this is still the case. Am I getting the wrong impression?
- mentos 4y ago“You get what you pay for.” has always been my reaction to Linux issues.
- quijoteuniv 4y ago1 - I wonder what OS do you use. 2 - Have you actually tried Linux?
- kingboss 4y agoI have. It's still inferior to Windows and it's trying to be a discount version of MacOS. And it's doing a bad job at it.
- mechanical_bear 4y agoInferior how? My KDE Plasma setup is nothing like MacOS.
- LoganDark 4y agoI hate to admit it but GNOME is legitimately a macOS ripoff. I love it, and it's great, but it's basically trying to be macOS.
- deleted 4y ago[deleted]
- quijoteuniv 4y agoI am afraid your comment does not encourage discussion. You can try justifying your assertions. Otherwise we just talking about feelings. I find the open source world gives me hope on humanity, in opposition to the sensation i get from Mucrosoft or Apple. I find learning the command line rewarding, that is the strenght of Linux IMO
- cobertos 4y ago> After all, if I elect to use Linux, a niche market by all means, shouldn't I be ready for these kinds of quests? Yes and no. I think if our only tools are are Google (well, now Kagi for me), Stack overflow et al., and the sites that hold quality content quick to the point, you'll be spending a lot of time on the info finding and not the fixing. I think it requires a a lot of information organization tools to continue to keep up with it. Or sink more time into info finding. Or just memorize everything if you have a brain for that
- blmayer 4y agoI am getting a 500 status code.
- goosedragons 4y agoI had a similar problem on Windows where it suddenly refused to work with any of my USB C ports. Linux could still detect them however. I did manage to get it working by doing a BIOs update on my motherboard since I noticed that the BIOs update notes mentioned "Improved USB compatibility". The weird thing is it worked in the past but I guess some Windows update changed something somewhere. I think all OSs can experience these kinds of weird problems from time to time.
- sampa 4y agoit is strange not to know to run dmesg first-thing when you have a HW problem for a guy who rants about "I spent several hours fixing a problem and I learned next to nothing in the process" if you wanna learn, you should've known at least about dmesg
- LoganDark 4y ago> if you wanna learn, you should've known This is a catch-22
- bryanlarsen 4y agoThis is prototypical of the standard Linux experience, but I'd like to remark on just how much less common this sort of thing is. Modern Linux and modern Linux distributions have a much larger "just work" factor and it's getting better every year in my experience. Slowly and asymptotically, but it is improvement. This was driven home recently by my experience switching to NixOS. NixOS is brilliant in many ways, but boy are there papercuts everywhere. It's all soluble but it is annoying. 25 years ago this sort of fiddling was fun, but now it's just tedious.
- ho_schi 4y agoAs user I would just return the device back and purchase a reliable USB based device. As a Mac-user would do? I guess a Windows-User would just rate [1/5] stars and don't even research. We should keep in mind: Linux users care a lot and do research. Most other will just say "nope" and leave it a issue for the manufacturer or keep turning it off and on again. What I don't know is if the initial situation is to blame upon Linux, Intel (Thunderbolt), device manufacturer or all of them. We have valuable post a the top explaining PCIe-Pause on MacOS and that Linux tries to apply a similar mitigation? Apple: Because Thunderbolt allows the addition and removal of arbitrary numbers of peripherals connected in arbitrary topologies, the task of dividing up the PCI tree’s address space can be challenging. Sometimes, particularly when large numbers of devices are attached, it is possible to exhaust portions of that address space. When this happens, a new device cannot be enabled without moving existing devices. To solve this problem, OS X v10.9 supports PCIe Pause—a special power management state in which all driver and device operations are temporarily suspended. Whenever address space exhaustion occurs, OS X may ask drivers to pause operations. After the drivers are paused, OS X changes the address space layout of the paused devices to make room for new devices, and then tells the drivers to resume normal operation Oh. If your driver does not explicitly declare support for pausing, your driver will never receive pause requests. As a result, devices may fail to appear when the user plugs in additional devices, particularly on hardware with multiple Thunderbolt ports. For this reason, you are strongly encouraged to support this functionality as soon as possible. Ouch. On Linux this shouldn't be an big issue because the kernel provides them. From the mentioned Linux patches: Currently PCI hotplug works on top of resources which are usually reserved: by BIOS, bootloader, firmware, or by the kernel (pci=hpmemsize=XM). These resources are gaps in the address space where BARs of new devices may fit, and extra bus number per port, so bridges can be hot-added. This series aim the BARs problem: it shows the kernel how to redistribute them on the run, so the hotplug becomes predictable and cross-platform. Fits into what Apple describes. The patch for Linux would be helpful. And I've the feeling that the approach Intel has chosen to add TB upon PCIE isn't bulletproof?
- pedrocr 4y agoI've been trying for a week now to get Windows to properly suspend and stay suspended on a Thinkpad X1. Even after changing the BIOS to "Linux" mode (S3 Sleep), fiddling with drivers and the registry, and issuing powercfg commands it's still flaky. The function keys to change audio settings also work poorly sometimes. These are the kinds of issues we used to have when trying to bring up Linux on a laptop. But now it's flipped. Linux on Thinkpads works great for me out of the box and I even get to set it up just like I want it (e.g., tiling WM). For my own use I'd have just given up and installed Linux on this machine as well but I have to dogfood this for everyone else in the company. I'm starting to try out using web versions of everything, particularly Microsoft Office, in the hope that ChromeOS is actually a hope for a usable desktop for unsophisticated corporate users.
- npteljes 4y agoYeah, I manage Windows and Linux computers at the same time, and Win machines have their fair share of WTFs too. Update is horrible for example, I had two cases over the years where it just borked itself, on systems that have the least amount of tinkering possible - one was even a preinstall by the manufacturer. After many hours or struggle, I found and downloaded the Windows Update Troubleshooter, which fixed the first PC in a short time. But the second time I had this issue, even the troubleshooter gave up, and the system just wouldn't update. Tough luck. Linux at least doesn't treat me like a child that broke a vase in the living room.
- cturner 4y agoI had a major troubles with linux suspend on a 2021 T14 - not a cheap system - and did not get past them. Moved to x1, no problems. Colleague has the T14, still running windows.
- Too 4y agoCheck the latest video from Linus Tech tips on Youtube, they did a deep-dive into the non working modern sleep on Windows. The conclusion was, as you've already tried, change sleep setting in bios to "Linux-mode", or just get a mac.
- seanwilson 4y ago> I spent several hours fixing a problem and I learned next to nothing in the process. This trick is unlikely to be useful again. By the time I encounter something similar, it is likely I will have forgotten about the solution. So much of modern programming in general is like this because of the always changing languages, libraries, tools, software, hardware etc. such that when you're coding you have to accept it will keep happening occasionally no matter how experienced you get so you don't get too wound up about it. It's especially discouraging when you're starting out too and don't know this yet.
- Ruq 4y agoMy last (Arch btw) Linux Evening was my laptop suddenly not booting after an update. I thought it must've been me, so I booted into the install media and reinstalled and reconfigured grub in a way that I knew would fix it...except it didn't. I then learned that GRUB had a bug introduced in an update that completely borked it for my system. So rather than deal with it I finally used it as the excuse I needed to ditch GRUB for systemd-boot, which if anything is actually simpler.
- pvsukale3 4y agoThis is kind of the reason I have switched to Mac. I used Ubuntu throughout my CSE degree and a year after. But system bricking at random upgrade, needing a fix was a no go for me at work. I understand some people do not face this issue. But whenever I wanted to try out something new or install anything, some random stuff would go wrong and would need hours of searching and fixing. Happens much less often with MacOs.
- INeedMoreRam 4y agoSounds like you had faulty hardware.
- gabrielgio 4y agoThat is quite vague statement to make. Linux let you try/change a lot more on its internal than MacOS, so you can definitely to more damage to your system on linux. I don’t see you trying simple things like “apt install go” and your pc would stop working (unless faulty hardware).
- wankle 4y ago"I have vouched to avoid USB and its undecipherable specs." OK.
- Pr0ject217 4y agoI agree, it's ironic. I haven't had much luck with Thunderbolt, even on Windows. USB has never failed me.
- timvisee 4y agoI must admit, I love 'Linux evenings'. I learn so so much in them.
- npteljes 4y agoIf OP used Windows exclusively, he'd have Windows evenings. There's tools that people complain about, and tools that people don't use.
- Waterluvian 4y agoThis reasoning implies that every OS is equally buggy in ways that impact usability. I think this is likely untrue. I don’t think it really matters if windows bugs exist, but how often they occur and impact use of the tool.
- pessimizer 4y agoThat implication would be a bad one, but in the specific case of a bland Linux distro (let's say Debian) vs. Windows I haven't ever seen much difference between the number of problems you run into. The major difference for me is that Linux problems are always theoretically operator-fixable i.e. the information needed to fix your problem is available to you, even if you're not technical enough to understand it. The means to fix Windows problems are frequently not accessible at all, anywhere. While I've had plenty of Linux evenings, I've had stuff broken on Windows that stretched into weeks until I finally gave up and reinstalled.
- npteljes 4y agoI agree. I don't know if it's down to luck, but I have a very positive experience with Linux, even on random notebooks, and I also really tried a good amount of distros too. I also have an extensive user experience with Windows. Currently, in my head, they are on par. There's stupid shit in both.
- yCombLinks 4y agoWindows just works without a hassle far more often than any linux distro I've installed.
- kingboss 4y ago
- sandGorgon 4y agoWindows + WSL2. After 20 years on Fedora and Ubuntu. Its that good.
- Manjuuu 4y agoAnd digging even more, you'll find the same solution somewhere else two years ago: https://www.reddit.com/r/XMG_gg/comments/ic7vt7/fusion15_linux_how_to_fix_thunderbolttb3_dock_usb/ https://www.reddit.com/r/XMG_gg/comments/ic7vt7/fusion15_lin...
- abnry 4y agoThe best linux evenings are the ones which happen and the StackExchange network is down for maintenance. Got burned once screwing up GNOME on my Ubuntu install, and what do you know, Ask Ubuntu wasn't available.
- diydsp 4y ago>This trick is unlikely to be useful again. Ahh, but now others can benefit from your work :) It's a system or a community. The wizards hand off to the communicators and enable more users. >In the meantime, the best I can think of is to pay for my distro, report bugs, and email manufacturers for Linux support. Hell yeah! and keep posting technical solutions. Even the little things you do like keeping your site very readable, posting the text instead of screenshots so it's searchable, etc. all help. >dkozel and your kind, whoever you are, wherever you are, and whatever you are doing right now, you are legend. You too, man. Remember Gandi's quote: “Whatever you do will be insignificant, but it is very important that you do it.”
- varispeed 4y agoI don't see the drive connection type is as important as making sure your backup data stays encrypted. Now doing this across different operating systems is clunky and quite challenging. You could use something like True Crypt or Vera Crypt, but mounting your drive then won't be typically as simple as plugging it in. For that reason it's probably better to have a separate computer for backups connected to the network. That way you don't need to care about encryption on every system you connect it to. It just works (tm).
- swayvil 4y agoIn my experience Linux is easy. Easy to install. Easy to upgrade. Never breaks. Never gets "infected". Fast. The absence of commercial bullshit is extremely nice too. (I like Debian) (Is it just me or is there a lot of FUD in this thread?)
- pxc 4y ago> (Is it just me or is there a lot of FUD in this thread?) Lots and lots of 'this is why I haven't used Linux for N years (and thus don't know what it's like)'. I have to use Windows at work, and the system is way, way less predictable and reliable then any Linux system I've run for a decade. Shit changes out from underneath me (Windows Update, policy changes) in breaking ways all the time, and there's often no rest to inspect or reverse what causes breakage. For every 'evening of Linux' I've had on my life, I have a few 'afternoons of Windows' (mostly hopelessly, blindly turning things off and on again) every week. When I ask colleagues who are my more accustomed to Windows than I am about how to solve issues, how to achieve particular configurations, or how Windows does certain things, it becomes clear that actually managing their workstations like comprehensible devices which are substantially under their own control is a foregone conclusion to them. The reality for Windows users is not a system that actually 'just works', but a deeply internalized helplessness that manifests as conservatism (attempting little, assuming many reasonable configurations are not possible), superstition (attempting and advising reboots, constantly, without being able to articulate a real reason), and blindness to the outrageousness of the situation (e.g., thinking it's perfectly acceptable that their laptop can't handle an uptime of 4 days before it starts falling apart, or 'I always shut my laptop all the way down at the end of the day so it'll run better'). It's no wonder that people conditioned by this kind of usage pattern don't have a sense of what reliability or mastery look like in the Linux world, how frequently issues like this do or don't occur, how easy or hard they are to avoid, etc. They live on a different planet, where mastery in desktop computing is worthless because there's just no hope for a predictable, transparent system that doesn't change out from under your feet. It'll just break tomorrow anyway. And on their planet, it doesn't occur to anyone to research hardware compatibility ahead of time; they never need to. So of course the thought of spending an evening rooting out a hardware incompatibility issue strikes them as some mixture of futile, extremely burdensome, and unavoidable/common for those poor Linux users— even when none of those things are true.
- vehemenz 4y ago1. If you don't encounter any trouble daily driving GNU/Linux, that is actually a sign of inexperience. That or you're doing nothing interesting. 2. If principles mattered more than convenience, most Linux users would be on FreeBSD or OpenBSD instead of GNU/Linux. Either follow your arguments to their conclusions, or understand that Windows/macOS users are doing the same thing as you—making practical tradeoffs. 3. Unless you are doing tons of system administration on your daily driver, most of your time is spent in applications, and the choice of operating system doesn't matter too much.
- ryanmentor 4y agoYou conclusion for your second point seems to include a lot of unstated assumptions. Which principles do you think are at play?
- seanw444 4y agoThis is an important list.
- S0und 4y ago> 1. If you don't encounter any trouble daily driving GNU/Linux, that is actually a sign of inexperience. That or you're doing nothing interesting. There are 3 type of person who knows a lot about cars: 1. A Car mechanic 2. People who love cars, and tinker them constantly 3. People who have a shitty car and something always breaks. Personally I'm not a car guy, I treat them as tools. I can do this because I always had a reliable car. I have a friend who once mocked me for my inexperience. I had to reminding him why he knew so much about cars. He was a Type 3 guy. No a shitty car tho, but something always broke on it anyway. So getting back to you, can we just have something Works? Is that a high bar?
- vehemenz 4y agoMy point here is that if you use Linux enough, then you will encounter issues, period, regardless of your technical level.
- 4y ago
- sequoia 4y agoThis post resonates strongly with me. I love the term "a linux evening." This was precisely my experience when I used Linux full time: mostly it worked great, but then occasionally something wouldn't work (some personal examples: touchpad doesn't work after OS update, wifi card stops working etc.) and then I have to spend a few frustrating hours debugging the issue. All I can think in these moments is "you don't get this time back. Is this really how I want to spend three precious hours of my life, when, if I used a different platform, I could avoid this hassle completely?" I know it's a tradeoff and I sacrifice a lot to live in my current Macintosh rut, but I just don't have the motivation to be my own DIY tech support wiz after a full day on computers for work. EDIT: as pointed out by others, one headline takeaway from this is that the author was able to fix the problem at all, which s/he may not have been able to do on Mac/Windows (though it's much less likely the issue would occur in the first place).
- ThinkingGuy 4y agoI was reminded of this XKCD: https://xkcd.com/349/ https://xkcd.com/349/
- pessimizer 4y ago> if I used a different platform, I could avoid this hassle completely? Where is this mythical platform? If something like this happened on Windows, you'd just end up clicking around arbitrary settings, googling desperately, and rebooting over and over again, until you reinstalled the entire OS. That option is also available with Linux.
- flaxton 4y agoThis is exactly why I stopped using Linux as my personal computer many, many years ago. I could do it, yes, but just got tired of spending hours fixing random weirdness. I have work to do! Love, love love it on servers, and have many. But I use macOS on my Mac and everything runs smoothly for me…
- rg111 4y agoI started using Linux with Linux Mint. Then moved to Pop OS NVIDIA edition 2/3 years ago. I _NEVER HAD_ a Linux Evening. I only faced problems for my noobness in my earlier years, and help was always a reddit visit away.
- Pr0ject217 4y agoI would title the article "A thunderbolt evening". I haven't had great experiences with Thunderbolt even on Windows. ^_^
- bombcar 4y agoMany people don't realize thunderbolt is an incredibly low-level and complex protocol/setup. It's not like USB or firewire, it's an entire additional PCI bus thing. It's surprising it works anywhere near as well as it does.
- dkozel 4y agoHi folks. :) I'm so glad that my hit-and-run post has been so useful. After seeing Fabien's blog post I did a quick search and it turns out that the solution has spread fairly broadly to other forums. My choice of 0x33 was arbitrary so makes a nice canary for seeing it spread out. I'm thrilled. Sharing experiences and solutions is so essential to learning. I've benefited enormously from the generosity of open source developers and communities and from individuals documenting pieces of their projects, glad to have raised the ocean a little in return. My use case was (and remains) having a Xilinx Artix 7 FPGA in an external Thunderbolt 3 enclosure for testing the development of DSP accelerators using open source tooling. I didn't want to have the FPGA board inside the PC to be able to swap it to my laptop easily, because it produces a lot of heat, and so when I misused the PCIe soft core (litePCIe: https://github.com/enjoy-digital/litepcie/ https://github.com/enjoy-digital/litepcie/) it doesn't take down the OS. Being able to reload the FPGA and effectively hotplug the device has been very helpful. Since I knew my issue was around hotplugging I searched for information around PCIe hotplugging and I think (it was two years ago...) that I found the answer from one of these two threads. Both mention the option of reserving PCIe addresses for hotplug busses as a workaround, and a workaround was all I needed. https://www.spinics.net/lists/linux-pci/msg64841.html https://www.spinics.net/lists/linux-pci/msg64841.html https://review.coreboot.org/c/coreboot/+/35946 https://review.coreboot.org/c/coreboot/+/35946 dmesg and the various kernel logs are my first stop for any odd behavior on Linux. Especially with any state change to a device (plugging in, turning on, removing, reconfiguring etc) the kernel logs tend to give invaluable info. I had already been looking at eGPU forums to choose the Thunderbolt 3 enclosure (ended up with the ORI-SCM2T3-G40-GY) and there were various discussions of hotplugging issues there, but I don't think I found the specific kernel options to fix it there. Check out this docs page for the kernel parameters: https://docs.kernel.org/admin-guide/kernel-parameters.html https://docs.kernel.org/admin-guide/kernel-parameters.html For the string "pci=realloc,assign-busses,hpbussize=0x33" `realloc` Enable/disable reallocating PCI bridge resources if allocations done by BIOS are too small to accommodate resources required by all child devices. assign-busses [X86] Always assign all PCI bus numbers ourselves, overriding whatever the firmware may have done. `hpbussize=nn` The minimum amount of additional bus numbers reserved for buses below a hotplug bridge. Default is 1. 0x33 (decimal 51) is arbitrary, but large enough that I was unlikely to ever exhaust that address range even with a large number of devices chained together on the Thunderbolt bus. I think (though would have to check) that the address space does get exhausted with multiple hotplug cycles. I haven't hit that issue since I shutdown the computer close to daily to save power. Sadly, there's no Segway, those things are expensive and I have a long wish list before reaching that point. Currently I'm saving up to get a microscope, I have a large box of RF integrated circuits that I'd like to do some show and tell with on Twitch. :) Also no unmarked 40% keyboard, RSI means I'm a total fanboy of the Microsoft Ergonomic keyboard and the Anker vertical mouse. Cheap and so comfortable. I have done some kernel compiling, mostly to learn more about kernel modules as I've been trying to make the learning curve and user experience of experimenting with FPGAs over PCIe easier. If anyone has some experience with DKMS and creating Debs I'd welcome a chance to chat. Ditto if there's any Debian maintainer with experience packaging kernel modules, I made some headway a while back to repackage linux-gpib but got stalled out on a few of the details of maintaining patches against the upstream. Cheers and Happy Holidays!
- anonymousDan 4y ago(Presuming there are some linux experts here) Slightly off-topic question but does anyone have any strong opinions about d-bus as an IPC mechanism? Is it actually used much or do most people prefer other lower level Linux/Posix IPC mechanisms (shm, pipes etc)? Does it have any glaring disadvantages compared to e.g. Android's Binder, or is that only more widely used because Google enforces it?
- rodric 4y agoxkcd: Wisdom of the Ancients https://xkcd.com/979/ https://xkcd.com/979/
- maherbeg 4y agoI'm generally an Apple hardware guy + console gamer so I don't have to have linux evenings like this. I used to enjoy the tinkering, but now I have Linux days in the Cloud and don't feel the need to be a computer therapist at night. On the other hand I just bought an Intel NUC to turn into a NAS and am planning to try out NixOS. I think I'm going to have a lot of evenings..
- jckahn 4y agoI’m a proud and happy Linux desktop user and rarely have significant issues like the one described here. I attribute that to using a “boring” distro (latest Ubuntu LTS’s only), and “boring” hardware (a Dell XPS 13 which is known to have good Ubuntu support). I just don’t have the spare hours to throw at getting basic system functionality to work, so I make software/hardware choices accordingly. Occasionally I will have a Linux Evening, and I attribute it to the fact that I didn’t pay for my OS and can therefore only expect so much. After all, you only get what you pay for. That being said, I will never leave Linux because using an open source operating system is completely worth the occasional hassles it brings me.
- greatgib 4y agoI have also a XPS13, it is quite good, and I never shutdown/reboot it. Only let it in sleep mode when needed. For months. There is still a recurring issue that I was encountering, that is similar to the one reported by Fabien Sanglard. It is with the small usb-c to usb-3 thunderbolt accessory. It is working perfectly, and suddenly, after months, it will not work anymore with anyhting plugged to it, without reason. In that case, in the syslog I can also see that the "memory space" is exhausting, with something "BAR" and it looks like that it is not able to allocate ports anymore. Before, in such a case, I was forced to reboot and that was a lot of frustration for me, to lose all my contexts. And most often at the wrong time when you are in a hurry. But, recently,in a Linux Evening, I found a command that "magically" resolve my issue when it is happening, without having to reboot: for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do [ -e "$i" ] || continue; echo "${i##*/}" > "${i%/*}/unbind"; echo "${i##*/}" > "${i%/*}/bind"; done This will deinit/deallocate all the usb internal hubs (usb2/usb3/...) freeing the ports that were allocated (leaked?) for them. And then reset them. Then everything is working correctly again. Even if it is not great to have this issue, this is the case when I like Linux, when there is always a way to fix your issues without having to reboot.
- Arainach 4y ago>When I emerge from these "Linux evenings", I wonder if the real problem is my attitude Put another way, "after I'm done being abused, I wonder if it's my fault".
- mahoro 4y agoOne more thing that happened with Linux in last 20 years is complexity raised in orders of magnitude. I remember Linux 2.x times and I had similar problems with hardware but a lot of them I fixed by following a limited set of tricks/patterns. Sometime I read a source code of some drivers or maybe applied some patches but not so often. But at that time I felt confidence that most problems I could fix. Now I don’t (and actually switched to Mac 5 years ago)
- ur-whale 4y ago> When I emerge from these "Linux evenings", I wonder if the real problem is my attitude. It isn't. I mostly use Linux and sometimes (work) have to use windows. The exact same thing happens with windows if you try to do anything remotely techy on it. The difference though is that "Windows evening" often end in failure because at some point, you hit the wall of a binary blob whose source code isn't online.
- hackeraccount 4y agoThe saddest thing of all (I think there's some XKCD referencing this) is when you have a technical problem like this and you find some post from a year or two years ago exactly describing the problem. And there's no reply. Empathy isn't the word. It's feeling like you're trapped on a deserted island in a vast empty sea - suddenly realizing that there's another S.O.B. who's been right next to you the whole time and also knowing that neither of you has the faintest idea how to get off the island.
- shadowofneptune 4y agohttps://xkcd.com/979/ https://xkcd.com/979/ I swore that this one was about the finding only person who had the same issue but who then had posted 'fixed it' soon after. That's even worse, it's like being stuck on the island and watching the S.O.B. walk on water into the distance.
- jakesgates 4y agoI really appreciate the write-up, as I have had many 'linux evenings' myself, and it always gets on my nerves when some members of the community act as if linux 'just works' for almost all users. Worth noting I love linux, and am a happy user, but I have had quite a few instances of relying on a more-experienced person previously running into the issue, or else I would still be stuck with those previous problems..
- mechanical_bear 4y agoIt does just work for most users. They don’t get online and post 2000 word blog entries about their successfully completing their work for the day with no hiccups.
- neontomo 4y agoYou just inspired me to do just that. https://neontomo.com/blog/?id=a-linux-evening-where-nothing-was-out-of-the-ordinary https://neontomo.com/blog/?id=a-linux-evening-where-nothing-...
- mechanical_bear 4y agoLol beat me to it :-) Glad someone was inspired!
- neontomo 4y agoHey, I'd love to read yours. Please write it!
- mechanical_bear 4y agoThis has generated a rabbit hole of epic proportions. My personal list of “I’ll get around to that someday…” Here I am installing nginx on my server in my basement…brb. I have to go finish that Symfony build of my personal site. I’ll be a minute or two.
- cryptonector 4y ago> > Out of curiosity, how did you come up with this solution? > The author, dkozel, never came back to answer. I imagine they typed the solution on a 40% keyboard featuring unmarked keys and then rolled into the sunset on a Segway for which they had compiled the kernel themselves. Completely oblivious of their awesomeness and of how many people would later find solace in their prose. Here's how I would have started to find the answer: 1. Open https://lxr.linux.no/, search for "No bus number available for hot-added bridge" 2. Open the three files it finds. 3. ^F that same string in each file, then notice that https://lxr.linux.no/#linux+v6.0.9/drivers/pci/probe.c#L3336 is it. 4. Chase down `dev->bus->busn_ref->end`. Er, well, this step is hard because `end` is so generic. 5. git clone linux and use cscope to index it. 6. Search for assignments to `end`, filtering with egrep for bus and pci. 7. Weed through it all until I find https://lxr.linux.no/#linux+v6.0.9/drivers/pci/probe.c#L2964 8. Search for assignments to `pci_hotplug_bus_size`, find https://lxr.linux.no/#linux+v6.0.9/drivers/pci/pci.c#L6882 9. Search for `pci_hotplug_bus_size` and also find https://lxr.linux.no/#linux+v6.0.9/Documentation/admin-guide/kernel-parameters.txt#L4267 which says: hpbussize=nn The minimum amount of additional bus numbers reserved for buses below a hotplug bridge. Default is 1. But @dkozel probably just knew the answer. I do find it hard to believe that the default for this setting is 1 though!
- mmastrac 4y agoDoes this just mean that they added 51 additional bus numbers? I am curious if the kernel could just bump this number up, especially if Thunderbolt is getting more popular.
- deleted 4y ago[deleted]
- julianeon 4y agoI doubt you need the work but, man, you'd make a dream Integration engineer. Like on a scale of 1 to 1,000 you sound like a perfect 1000.
- LAC-Tech 4y agoI had a couple of years stint with windows, and I had a couple of these "evenings" as well. Maybe Mac OS is immune, but windows never was and isn't now.
- revskill 4y agoI realized real competitor of MacOSX is not Windows, it's Linux.
- shadowofneptune 4y agoNvidia drivers, signed kernel modules, and Nvidia signed kernel modules are my own most common sources of 'Linux evenings.' SecureBoot is quite possible on Linux until you need to reach for these, then it becomes a headache.
- Agingcoder 4y agoI started using linux in 1996. I've had a mac since 2010 - it just works, while my sound card would randomly stop working (pulse audio, whatever, I don't care anymore), and I even had to manually patch the alsa drivers manually (and write the patch) . I wish I could use Linux reliably for anything else than a terminal (and I do use it everyday at the office in a terminal ) , but it's just never worked well for me, in spite of my wanting it to work. I'm a bit sad about Mthe whole thing : I want it to work, but it doesn't. I don't have the time to waste yet another linux evening, yet I can't resent the people who work on it for free, and understand very well that it works for some people.
- buserror 4y agoNot entirely sure we are going the right way tho. In the last 3 months or so (aka 2 major kernel versions), I had to add stuff to my command line to make my perfectly working workstation work again. X99 motherboard, worked for years. GRUB_CMDLINE_LINUX_DEFAULT="mitigations=off acpi_enforce_resources=lax pci=noaer intel_iommu=off" All of them due to various problems I had to 'google and cut paste bits and see if it works'. I'm considered a bit of an expert, and I only understand fully one of the added parameter, and why it's needed.
- Sugimot0 4y agoBeen using arch as my first and only *nix for about 4 years now, most of the pain points have been smoothed out, usually you can find answers by searching whatever errors you see or checking dmesg. If you're a CS person, it really isn't hard to solve most issues and reason about, it's just normal debugging / docs / forums. In the event that you're doing something weird and niche, or you really cant find your info, you might reach out to the community and it's likely some linux wizard will solve your issue, like this post. I was much more frustrated on windows when i ran into issues and your best bet was some incompetent support, and watching blue screens til you come to the conclusion that your system is scrapped, who knows why, and you need to reinstall and start over from scratch. On arch you can save your dotfiles, make snapshots, chroot to fix things, and so on, there's tons of safeguards you can put in place, and tons of options for remediation. You really just need to RTM. On top of that if you have a gripe about some software not working how you think it should, you can usually hack it or replace it. If you have an idea for some new functionality you want you can usually find/install some existing software for your needs in like 2 seconds, or you can find the repo of your software and submit an issue or PR. Alternatively you can also just string together existing tools in a script in order to fulfill your needs. I did this recently to create an OCR screenshot to clipboard tool using tesseract and flameshot, something I wouldn't have even considered possible on windows.
- deleted 4y ago[deleted]
- DerSaidin 4y agoTake away 0: Good error messages are important pointers. Make sure you include good, unique, descriptive errors in software you write. When you figure out a solution, post it online with the error message so others can search it to make the connection and get to the solution more easily.
- johnboiles 4y agoBuckle up everyone I hear 2023 is the year of the Linux desktop!
- nazgulnarsil 4y agoI recently had a Linux evening trying to enable a swap file for pop os that was inexplicably lacking one by default leading to hard locks when I ran out of ram. I eventually fucked the install badly enough that I needed to wipe the boot drive and start fresh. Really disappointing because until then everything was Just Working.
- kovac 4y agoInstead of searching the Web for hours, I think it's more effective to request help in a mailing list or their IRC channel if a few minutes of web search doesn't get you anywhere.
- zimmund 4y agoEven using Arch, I rarely find any big problem using Linux. There are small inconveniences from time to time but, even so, maintenance takes less time/effort than removing bloatware after each Windows 10 update...
- C-Fields 4y ago> “The author, dkozel, never came back to answer. I imagine they typed the solution on a 40% keyboard featuring unmarked keys and then rolled into the sunset on a Segway for which they had compiled the kernel themselves.” Haven’t laughed that hard in a while.