libera/#devuan/ Tuesday, 2023-10-10

XenguyI have this laptop that I really love, and it is working again, nonimally, but still I'm beginning to wonder if it is somehow just cursed...03:54
XenguyThere are 2 main problems right now, but the first is that I can hear sound through the regular PC speakers, but when I plug in some earphones, I don't hear any sound...03:55
XenguyI'm wondering if there is a way to troubleshoot this somehow?03:56
XenguyI am using Beowulf, and I have updated it using apt-get update03:58
fluffywolfdo you have pulse?04:02
Xenguyfluffywolf: Pulseaudio?04:03
XenguyIf so, yes pulseaudio is installed04:04
fluffywolfthat's problem #1...04:07
XenguyI have never had an issue with pulseaudio in the past04:08
rustyaxepipewire<304:08
* rustyaxe installs devuan onto new sd card for radio pi :o04:10
XenguyThe key here is that I have sound, just not through the earphone jack.  That I don't understand04:11
XenguyIt may be as simple as a hardware failure I suppose04:11
brocashelmmine are all alsa setups; headphone jack connects to my receiver. if i want to switch to headphones, i simply plug in my headphones into the receiver :)04:11
brocashelmalthough i could also connect my headphones to the front jack and pipe the sound there (instead of my receiver)04:13
XenguyTo be clear, I'm not looking for any customized setups, I'm just looking sound that just works.  Nothing fancy has ever been required for this, nor should it be needed04:14
XenguySo really I'm looking for a way to troubleshoot this situation in as simple and direct way as possible04:15
brocashelmalsa i find to be much more straight-forward and works with traditional headphone jacks (instead of usb/bluetooth)04:18
brocashelmcan you test with another pair of headphones to confirm whether it's the headphone device or your pc?04:19
XenguyI don't use usb or bluetooth, just plugging into a standard round headphone jack04:20
brocashelmthat should work 100% fine with alsa. i never had a problem taking this route04:20
brocashelmalsamixer lets you monitor all the sound channels04:20
XenguyI have tested with 2 different earphones, and I know they work on the other laptop, so I think that test is covered off04:20
brocashelmok, so it's pulseaudio on your system not picking them up somehow04:21
XenguyI did notice with alsamixer that when I first went in, the headphone setting was at zero volume, so I adjusted that, but it didn't seem to result in any change in the headphone behaviour/output04:25
gnarfaceXenguy: if you're using pulseaudio you need to check pavucontrol04:31
gnarfaceby chance have you changed/updated your HDMI display hardware since it stopped working?04:31
gnarface(i've seen some misbehavior with pulseaudio on beowulf too)04:31
XenguyI just read the Release Notes for Beowulf and there is a line that needs to be commented out in a file...04:34
XenguyThis was done before but I just checked and the line was not commented out, hrm04:35
Xenguygnarface: Thanks, I will queue pavucontrol until I see whether commenting that line, as advised by the Release Notes, helps04:36
XenguyThat's funny, after commenting the line, now I get no sound at all, whereas previously I at least got sound without headphone  : -)04:37
onefangIf you wear the headphones while you plug them in, do you hear some short static?  That will tell you that there's some voltage on the headphone jack at least.  No static might mean the jack is broken somehow.  You said it's old, might just need cleaning.04:38
Xenguyonefang: Yeah I do hear static on the headphones.  I'm going to pull a windows and reboot at this point, since I've changed a few things04:40
gnarfaceit's usually a failure in jack detection but it's not always clear whether it's coming from pulse or alsa04:40
gnarfacei usually just disable jack detection in alsa and manage the volumes manually04:41
gnarfacebut that's where i'm not using pulseaudio04:41
gnarfacewhere i am using pulseaudio though, i am generally helpless before this type of bug04:42
XenguyAs I say, I've always just gone with the default setup (which is pulseaudio) and things just work fine.  I'm not opposed to seeking a different setup, but I would rather not go down that road unless clearly necessary...04:43
XenguyReboot now just to clear the decks04:43
gnarface(recently Steam added the missing mute button to the Remote Play console though, that helped)04:43
onefangSome audio does go through HDMI on some devices, even if it's only for the headphone jack, so gnarface's earlier suggestion might be worth looking into.04:43
gnarfacewell, that was related to my Steam issue; the current hypothesis is i experienced a regression when adding new monitors to that machine, because they were HDMI so they had their own audio devices that now pulse was trying to erroneously re-route audio to by default in certain cases where it was not before... cases where there were no apparent override controls provided by pavucontrol04:45
gnarfacebut, years later Valve actually added a control to their own interface for it04:45
onefangMy graphics card has four video outputs, but six audio devices.  I had to try them all to figure out which one went to the monitor that has speakers.  lol04:46
gnarfacei still don't know how to deal with that situation in pavucontrol, but i have some suspicion it was swept under the rug with a newer release04:46
gnarface(the beowulf system is also the only one i'm using pulseaudio on)04:46
onefangMeh I just use alsa and Jack, but I do pro type audio stuff sometimes.04:47
XenguyOK, happy to report that whatever I changed worked, and I now have sound through headphones now04:50
XenguyNow for the 2nd problem, and this is indeed vexing...04:50
XenguyI took this laptop with me on a roadtrip this weekend only to discover that the wifi was blocked, at the hardware level.  Note that this was never the case before, to the best of my recollection...04:51
XenguyWith this laptop, if I wanted to turn off wifi, I would need to do it at the software level, as there was no hardware switch to turn wifi on and off...04:52
XenguyBut when I run 'rfkill', it says that wifi is turned off at the hardware level currently...04:52
XenguySo I absolutely don't understand how wifi could get turned off at the hardware level, or how to turn it back on04:53
XenguySince I use ethernet cables at home, I didn't notice this was an issue until I when on the road and tried to use wifi, and that's where I realized something was amiss04:54
XenguyFor this problem I should probably create decent testing conditions by turning on my wifi on my router, so that I can properly test while I fiddle04:55
onefangIs there a carefully hidden switch for that WiFi?  Maybe an internal jumper that got dislodged.04:55
XenguyLet's see if I can remember how to do that : -)04:55
gnarfaceXenguy: only though i have about that is if it doesn't have a physical wifi switch on it, there's gotta be a setting in the BIOS(EFI)04:56
gnarfacethe only thought*04:56
gnarface(usually if there is a physical wifi switch, it's still a drive-by-wire control attached to a bios setting)04:56
gnarface(^ and as such, can have expected behavior sabotaged reverse-engineered linux drivers)04:57
Xenguyonefang: On this laptop there was never a hardware switch for wifi that I was aware of; I always had to shut off wifi (when I wanted to) using the software level04:57
gnarface*sabotaged by04:57
Xenguygnarface: Alright, thanks, so your advice is to check the BIOS settings for wifi related settings?04:58
gnarfaceyes04:58
XenguyAlright, since I just rebooted, I may as well do so again, and check that  : -)04:59
gnarfacethough how it could have gotten changed without a bios update or direct sabotage is still a mystery04:59
gnarfaceyou're sure the wifi driver is loaded, right?04:59
Xenguygnarface: This is what drives me crazy too...  Basically the laptop has just been turned off for a long time, so why should settings *change* since then and now?05:00
gnarfacestandard first steps would be make sure the driver is loaded, and make sure any non-free firmware packages necessary for it are installed05:00
gnarfaceyou're right, it really shouldn't have changed, that part is a mystery, but maybe you'll get to the bottom of it05:00
Xenguyre: sure it's loaded:  No, I am not sure, so that's on the to-do list I suppose05:00
XenguyI'll try checking the BIOS now then, bbiab, thanks again for all assistance rendered, and yet to be offered05:01
gnarfacei don't know for sure the rfkill behavior well enough to know that this might not be caused by a regular update accidentally removing a non-free package or a kernel/initrd update changing which modules auto-load without being placed in /etc/modules05:01
onefangBIOS settings might change if the BIOS battery failed while it was turned off for a long time.05:03
onefangGotta wait for him to come back so we can repeat.05:04
Xenguygnarface: Good suggestion to check the BIOS I think, and here are the results...05:11
XenguyWireless LAN was already enabled; Wireless WAN was disabled, so I enabled it just in case.05:12
onefangBIOS settings might change if the BIOS battery failed while it was turned off for a long time.05:12
XenguyI'm not really sure what 'Wireless WAN' is, and I don't believe it was necessary before, to achieve working wireless, but I enabled it for now just in case05:14
XenguyCurrent output for 'rfkill' is:05:14
Xenguy# rfkill05:14
XenguyID TYPE DEVICE    SOFT    HARD05:14
Xenguy 0 wlan phy0   blocked blocked05:14
XenguySo wireless seems to be blocked at both the software and hardware level05:15
rwpLook for a hardware switch on the side of the laptop.  Mine has one.  That hard blocks.05:15
Xenguyrwp: Understood, for example on my older laptop it does have a hardware switch, but unless my memory is completely faulty, this laptop was only able to block wifi via software (i.e. not hardware).  That's why it's such a mystery as to how wifi could become blocked at the hardware level also, on this machine (and it was working fine before I turned it off for a long time)05:18
rwpIf you don't see it disabled in the BIOS then I would boot a live boot image and look there in order to isolate that it is not some current software configuration.05:19
rrqXenguy: which laptop brand & type is it?05:20
rwpBlocking it in software would normally be the soft block shown by rfkill list.  But it says hard blocked.  Therefore I would look for something stronger.  Switch or BIOS.05:20
rrqsome laptops have wifi switching on function key05:21
Xenguyrrq: This is my beloved X220 Thinkpad05:21
onefangNot beloved enough if you left it turned off for a long time.05:22
rwpMy X220 has an rfkill hard switch on the left side front.  And I have frustratingly accidentally hit it several times.05:23
rwpIt should be showing green when enabled.  Not green when blocked.05:23
XenguyI just tried using the function key to toggle software wifi, and it did nothing; but then I toggled it in the wicd GUI, and now wifi is unblocked at the software level05:23
Xenguyonefang: It's a long story05:24
XenguyOMG05:24
rwpLook below the PCMCIA slot in front of the USB there.05:24
rwpI have accidentally hit that several times when putting it into my bag because I always put that end down.05:24
XenguyYou are perfectly right rwp!05:24
XenguyMy memory was absolutely faulty in this case05:25
onefanglol05:25
XenguyGood idea to ask for the actual model rrq : -)05:25
rwpI am typing on my own X220 right now! It's been an awesome machine for all of these years.  And it has the best keyboard of my collection.05:25
onefangUser error, please replace your user with a working one.05:25
Xenguyrwp: I really love this baby, but I was starting to get paranoid that it was somehow cursed, hahah05:26
XenguyOK, before I get too giddy and celebrate, I need to get my wifi turned on , and try a test to connect to it05:26
XenguyBTW, should I turn off 'Wireless WAN' in my BIOS, anyone?  I don't really know what that does, but it was set to 'on' before today05:27
onefangMaybe it mirrors that WiFi kill switch you just found?05:27
XenguyWe may be in business now:05:28
Xenguy# rfkill05:28
XenguyID TYPE DEVICE      SOFT      HARD05:28
Xenguy 0 wlan phy0   unblocked unblocked05:28
gnarfaceXenguy: could be a cellular modem? did this model have such a thing?05:28
onefangYay!05:28
Xenguygnarface: Not knowledgeable enough to know what that is05:28
onefangWish I could find a 5G cellular modem that doesn't cost hundreds.05:28
rwpWireless WAN would be a cell modem.  Mine is not so equipped.  I would need to reboot to look in the BIOS but pretty sure it isn't even an option for me.05:29
onefangSomething that does the bare minimum so I can plug it into a Pi or something and run the rest open source.05:29
gnarfacemy pinephone calls the wifi device wlan0 and the 4g cell modem wwan005:29
gnarfacethe amazon listing for this laptop calls it "WWAN upgradeable"05:30
gnarfacenot seeing a lot of details though05:30
gnarfaceonefang: pine64 cells 4g ones anyway05:31
onefangThat's one reason I can't find a 5G modem.  Too many different words for it, PLUS WiFi has a 5G band.05:31
XenguyOkay, so thank you all very much, wicd was able to scan the nearby wireless access points, so I am now back in business (and I have sound through earphones too) so tonight has been a successfully troubleshooting session I would say05:31
gnarfaceXenguy: if it has a modem you didn't know about previously, i would recommend for safety that you go turn it back off in the bios05:32
onefangI got a 4G modem / router one, but found out recently the 4G part of it is running an embedded Android that replacing the router firmware with something open source wont replace.05:32
gnarface(and for battery life)05:32
Xenguygnarface: Thanks, that was my inclination also05:32
gnarfaceneat feature though05:32
XenguyI think I'll do that now before I forget.  Thanks kindly again everyone, I'm one happy camper at the moment  : -)05:33
XenguyThis laptop might turn out to be uncursed afterall  = )05:33
onefangI'm really considering replacing the firmware, coz SOMETHING keeps resetting the connection every 24 hours, 1 minute, 0 seconds.  Running out of ways to work around that.05:33
onefangYou are welcome Xenguy.05:34
rwpIt's not cursed!  It's a good machine.  Speak to it nicely and tap on the keys softly. :-)05:34
rustyaxequectel ec-25 modules are cheap, gnarface05:35
onefangAnd especially tap on that WiFi kill switch very softly, or not at all.05:35
rustyaxeMight look at the gl-inet pulli or collie devices, they're pretty solid kit and run openwrt from the factory05:35
onefangrustyaxe: are you talking to me or gnarface?05:36
rustyaxe5g you're not gonna get cheap -- about 250$ seems be starting place of the 5g modules05:36
rustyaxeonefang: you seem to be afflicted with android, so both? :P05:36
gnarfaceyea, the pine64 ones are objectively crappy modems, but the nice thing about them is that the reverse-engineered drivers are fairly fully functional, no android parts required05:36
rustyaxeI'd promptly return any network kit i purchased that ran android lol05:38
rustyaxethat seems horrifying :)05:38
onefangIt was only when I was checking the open source firmware for it that I found out about the internal Android.05:38
onefangAnd yes, was promptly horrified, especially since it said you can't replace that bit.05:39
onefangSo 5G modem that does the bare minimum, install Devuan on a Pi to be the router would be awesome.05:40
onefangAlso horrifying that this new 4G modem / router pings two Microsoft servers at random times.05:41
onefangI can still return it, but I want to find something better to replace it.  So 5G would be nice.05:43
rustyaxeonefang: https://store.gl-inet.com/products/m2-5g-development-board05:43
rustyaxethat might work -- i know most of gl-inet's routers are openwrt based which means linux05:44
onefangI'm guessing that's USA $225?  Looks like I could plug it into any USB port.05:46
onefang"1 x 5G Module (Optional)"  I gotta pay more for the important bit?05:50
onefangI gotta go grocery shopping, and I'm hungry.  Time to wander out, get some lunch, then visit the supermarket.  Back later.05:51
rustyaxeno05:52
rustyaxeits 29$ without the module05:52
rustyaxejust for the usb adaptor / antenna / sim connection / etc board you pay 29$ and can add any module -- for 225$ usd you get both the module and a quectel 5g-nr cat19 module05:54
onefangYou where right the first time rustyaxe, 5G isn't cheap.  That's out of my budget.  Guess I'll see what's the best 4G LTE modem or modem / router I can get with open source firmware, or can be replaced by open source firmware.  Just the modem and plug it into a Pi running Devuan for the router side will work, I don't need that many Ethernets.07:04
rustyaxeonefang: cheapest is prolly a quectel ec-25 or similar - but thats a cat4 module so you wont get over maybe 50mbit -- tho around here thats what QoS is set at on my 5g device so... :)07:46
rustyaxeyou can either use those in ppp over usb serial mode or qmi mode which seems to gain a slight (few percent usually) gain in speeds but might require funny qualcomm drivers or smthg (note quectel is huawei, not qualcomm, but they 'clone' the qmi interface07:48
onefangNever heard of qmi.07:48
rustyaxeonefang: a cheaper route might be to find a cheap 5g android with unlocked bootloader, if such a thing exists, then usb tether it to a router and mangle the TTL to try to hide the fact you're hotspotted07:49
rustyaxepretty sure you can install iptables/nftables on android07:49
rustyaxebut you'll definitely need root and preferably unlocked bootloader so you can change the kernel image as needed07:50
onefangThe problem with using Android as a hotspot is that the battery will stay on charge forever, which will kill it quickly.  I was trying that with my old 4G smart phone before I bought the 4g LTE router.07:51
onefangI'm also considering buying a Fairplay phone soonish.07:51
gnarfacequectel ec-25, that's the same as the Pine64 one, right?07:52
gnarfacei mean, they also use that one... i think it shows up in a lot of devices from around 10 years ago07:52
gnarface(14?)07:52
rustyaxeNo clue, its what's in the many, many LTE devices we have in the field (around 1400 ;)07:52
gnarfaceyea i think it's the same one07:53
rustyaxeprobably theyre like 45$ bare, non-oem pricing07:53
gnarfaceyea they'll be cheap07:53
rustyaxeI figure ~25-30$ at most oem pricing since the routers run <100$ usd07:53
gnarfacethey run a little hot though07:53
onefangLiving in the sub-tropics, running a little hot might not be good.07:54
gnarfaceyea, probably not07:54
gnarfacepine64 makes phones of these things and the two biggest problems with them are heat and battery life07:54
gnarfacewhat i understand though is the next level of entry is several times more expensive, and doesn't have linux drivers07:55
gnarface(though there's a community of folks around them aggressively trying to pass off that android kernel as linux)07:56
onefangAndroid kernel is a modified Linux kernel.  And these days their command line user space is toybox, similar to busybox.07:57
gnarfacethe community firmware has improved idle temperatures a lot though, so it'll only really heat up when transferring data07:57
gnarface... but, they're cheap and they work, that's the important part really08:01
brocashelmsounds like a good topic for... #devuan-offtopic08:01
gnarfacegood point08:02
user3614With package runit-init does the file /etc/inittab have ny effect?  Is package sysv-rc really needed?08:55
gnarfaceuser3614: not sure, but i think the runit can optionally use sysvinit scripts09:32
user3614Actually, the package initscripts depend on sysv-rc, file-rc or openrc.  And /lib/runit/run_sysv_scripts seems to be the runit code running sysvinit scripts.09:35
gnarfaceuser3614: yea, but the scripts themselves may require the rest of sysv0rc09:37
gnarface*sysv-rc09:37
user3614At least from the list of files in sysv-rc the rest seems to be just documentation or lintian stuff.  I.e., /etc/init.d/rc and /etc/init.d/rcS seem to be the only files containing code.09:41
XenguyStill working on bringing this laptop back to the future, and after a ton of upgrades to bring this Beowulf installation, I now have a couple of loose ends:19:42
XenguyThe following packages have been kept back:19:42
Xenguy  libpolkit-qt-1-1 libpolkit-qt5-1-119:42
XenguyTrying to remove either proposes the removal of a ton of software, so that doesn't seem to be an option...19:43
XenguyI did try:  aptitude why <package>19:43
XenguyBut can't see any silver bullet so far, so wondering about a good way to troubleshoot getting rid of these dangling threads19:44
XenguyI suppose they could just continue to dangle there, and it wouldn't be the end of the world19:45
fsmithredhow about apt rdepends ...19:45
* Xenguy has a look ...19:45
n4dirme being me: i'd remove them, let the ton of software get removed too, then reinstall it. If reinstalling would bring the problem back, i'd be angry.19:46
fsmithredare you stuck on the chimaera versions of those packages?19:47
fsmithredlibpolkit-qt-1-1 doesn't seem to exist in daedalus19:48
fsmithredjust the qt5 one19:48
Xenguyfsmithred: This is Beowulf here19:48
XenguyThis is one redepends:  https://paste.debian.net/hidden/ab5773df/19:49
fsmithredit's not in chimaera, either19:50
bb|hcbXenguy: Maybe moving to daedalus will also get rid of the stuff that requires them? I'd keep them, until fully upgraded and only afterwards look what and why19:50
XenguyThis is the 2nd rdepends:  https://paste.debian.net/hidden/9db12033/19:51
fsmithredare you in the middle of upgrade to chimaera?19:51
fsmithredthat paste shows the beowulf version19:51
fsmithredmaybe 'apt install libpolkit-qt5-1-1=0.113.0-1'19:51
XenguyI didn't intend to upgrade from Beowulf, no; I just wanted to update the current Beowulf install19:52
fsmithredoh19:52
fsmithredI haven't tried that in a long time.19:52
XenguyBeowulf is updated here now, except I have those 2 dangling threads...19:52
XenguyI wish I knew more about how to resolve them myself...19:53
fsmithredare they stopping you from upgrading?19:53
XenguyI think you helped me before in one of these situations fsmithred when I upgraded online from ASCII to Beowulf...19:53
n4diri never was good with it, but aptitude makes proposals how to solve a situation19:54
fsmithredyeah ^^^19:54
XenguySince I don't want to upgrade right now, I suppose they aren't doing any real harm, I just thought maybe there was a way to get it resolved19:54
n4dirmost of the times it told me "remove loads of packages" ... lol19:54
Xenguyn4dir: Is this the 'aptitude why' approach, or something else?19:55
fsmithredyeah, force upgrade to chimaera where libpolkit-qt-1-1 doesn't exist.19:55
n4dirno, you just use aptitude instead of apt-get (or apt)19:55
n4dirit will then find a problem, and make proposals.19:55
fsmithredaptitude -s full-upgrade19:55
XenguyAgain though, I don't want to upgrade to Chimaera, at least right now19:56
XenguyI think it is safe nowadays to mix and match apt, apt-get, and aptitude ?19:56
fsmithredalso consider this - if you apt install and it wants to remove a bunch, note whether they will actually be removed or just be added to the autoremove list.19:56
n4dirshould work, as long you don't edit the sources.list, which you won't.19:57
fsmithredif it's autoremove, they might not go away after you install some things.19:57
n4dirXenguy: in case of problems aptitude would ask you, like "accept solution?", if you say no, it will make a different proposal19:57
n4dir(lets hope i remember that right, but i am quite sure))19:58
fsmithredfull-upgrade will install new packages if they are needed.19:58
fsmithredsame as dist-upgrade19:58
fsmithredsafe-upgrade or just plain upgrade will only upgrade packages that are already installed.19:58
XenguyI'll perhaps look at playing around with aptitude a bit then, and see if I can gain further insight...19:59
XenguyIn the end it's just a nice-to-have, certainly not a showstopper20:00

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!