Linux

47940 readers
1191 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
1301
 
 

I currently use the following one-liner to switch between sinks

pactl set-default-sink $(pactl list short sinks | awk '{print $2}' | sd 'easyeffects_sink\n' '' | sd "$(pactl get-default-sink)\n" '' | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true ) && pw-play --volume=0.2 /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga

It seems wpctl doesn't currently support node.names which makes this significantly more complex, has anyone done something similar with wpctl? I've found a massive script but I want something more simple that's a one-liner.

wpctl set-default $(pw-cli i $(pactl list short sinks | awk '{print $2}' | sd 'easyeffects_sink\n' '' | sd "$(pactl get-default-sink)\n" '' | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true ) | rg -oP 'id: \K\w+')

closest I've managed so far is this, which at least makes it so that wpctl sets the sink, which is an upgrade, I guess, but there's still two pactl's to eliminate...

1302
 
 

I have some video files which have stereo audio tracks that were created from a mono source. I think the mono signal got sent to the right channel and not the left because when I created the files in OBS I forgot to select mono audio recording. When I play the videos all the sound is on right side only. Hope that makes sense...

How can I either mix down/combine the stereo tracks intoto a single mono track or replace the empty left channel with the audio content of the right channel? Is there a way to do this without reencoding the whole video file?

I could do it in a video editing gui by copypasting the audio track to the other empty channel but I wonder if there might be a more efficient way of doing it. An ffmpeg command perhaps?

Many thanks

1303
 
 

how do I start looking for the package I need?

This happens with some mkv files and to all mp4 files I play, both with apt and flatpak installed vlc versions.

this never happened on the same computer with xubuntu 23.10

1304
-31
Titus' Linux Problems (www.youtube.com)
submitted 4 months ago* (last edited 4 months ago) by urska@lemmy.ca to c/linux@lemmy.ml
1305
24
The Linux Experience (www.youtube.com)
submitted 4 months ago by urska@lemmy.ca to c/linux@lemmy.ml
1306
 
 

I tired Linux a few times in the past, but didn’t really start using seriously until 2019. I love poking around old OSs and distros, and I want to spin a few up in some VMs my next free evening.

Any suggestions? Open to any distro (or let’s be honest, DE). Any versions that holds a special place in your heart or that’s exceptionally novel? Really interested to see what’s out there!

1307
1308
1309
18
submitted 4 months ago* (last edited 4 months ago) by Petter1@lemm.ee to c/linux@lemmy.ml
 
 

Hey there

I have to add backported drivers to my 5.15 kernel source in order to create a embedded Linux on kernel 5.15 compatible with newer devices like 5ghz wifi dongles.

I understood that I have to use this command:

Python3 ./ gentree --integrate --clean /path/to/linux-next /path/to/my/5.15-kernel-source-git

But it fails stating it wanted to copy a file from new linux that only exists in the old linux

Have I understood that wrong?

Edit: it says it does not find …/lib/memneq.c which seems not existing there at least since 6.2 🤔

Edit2: I fear that it only backports 5.15 drivers to even older kernels 😮 so, I think I have to integrate lwfinger‘s rtw88 backport into my 5.15 kernel sources, somehow, after all

https://backports.wiki.kernel.org/index.php/Documentation/integration

1310
 
 

I needed to add a custom System Request (Sys Req or SysRq) to a linux kernel some time ago. While doing so, I dug deep into how it works and I thought I’d make a quick post about it. Here is a good SuperUser answer about what a SysRq is. You may also know about SysRq via REISUB. This post has three parts: how to raise a SysRq, how SysRq works (looking into kernel code), and how to add your own SysRq.

Disclaimer: This is my website.

1311
33
Libre and Free A Linux Legacy (song) (testaccountpleaseignore.bandcamp.com)
1312
 
 

Hello everyone,

I wanted to share with you (once more) the release of Louvre v2.0.0 (C++ library for building Wayland compositors) #linux .

Demo Video.

Highlights of the new features:

  • Screencasting: Now compatible with PipeWire via xdg-desktop-portal-wlr.
  • Session Lock Protocol: Allows for the display of login windows.
  • Layer Shell Protocol: For wallpapers, panels, notifications, etc.
  • New Input Events API: Enhanced with support for touch events, pointer gestures, and pointer constraints.

Release Details.

If there's any protocol or functionality you would like to see added, please feel free to suggest it or contribute to its development!

1313
40
submitted 4 months ago* (last edited 4 months ago) by governorkeagan@lemdro.id to c/linux@lemmy.ml
 
 

I know the title sounds a little strange but hear me out. The time tracking software I use for work doesn’t work on Wayland, unless I’m using Gnome as my DE. They have an extension that allows it to work in this case. Personally, I don’t enjoy Gnome on my desktop (I use it on my laptop). Is there a way for me to get the functionality that this extension provides on KDE so that I can use Wayland on my desktop as well?

Time tracking software:

Linux install script:

EDIT: I have included more files in the codeberg repo. I hope this helps.

1314
92
submitted 4 months ago* (last edited 4 months ago) by Moorshou@lemmy.zip to c/linux@lemmy.ml
 
 

I was curious what the Linux people think about Microsoft and any bad practices that most people should know about already?

1315
 
 

Just switched over my windows 10 gaming rig to PopOS, and have gotten it to work pretty well, with some minor bug squashing.

However, one bit of functionality from Windows that I haven't been able to reproduce is the ability to wake the computer from sleep when I turn on my Bluetooth PS5 controller.

My Bluetooth card is PCI, and I've located the hardware address using "bluetoothctl list" but from there don't really know what to do.

Some topics online have suggested going into the sys/bus/PCI/devices directory and finding a /power/wakeup setting, but I can't figure out which of the "0000:00:whatever's" correlate to my Bluetooth card, if I'm even in the right place at all.

Another thing I'm not sure I understand is pop's sleep settings. It seems to be either monitor off or suspend. I feel like what I want may not be possible from full suspend and there is often an intermediate sleep setting on other OSs?

Can anyone point me in the right direction? Thank you.

1316
 
 

I have been using CachyOS for more than 6 months at this point and I'm pretty happy with it. Among the many distros I tried, this is probably my favourite arch based distro. I initially installed it because it offered Hyprland desktop, and I didn't want to bring over my messy config nor did I want to start from scratch. But sometimes when I want to game or when I wake up my computer from sleep the display would just keep blacking out and won't let me use it until I restart the computer (I am using an AMD GPU btw). This issue has been happening on Plamsa 6, and Gnome as well. I have tried various fixes from the ArchWiki but it's still there. Other than that I really liked the Distro.

It's not like changing distros can solve my moitor blacking out problem, but I'm going to try something based on Silverblue for a change. Yes, I have tried the Ublue project in the past, it was good but I couldn't get into the whole immutable thing back then, so I hopped back to my staple Arch/Tumbleweed and carried on. Fast forward to today.. I'm thinking about trying Bazzite or Aurora as the idea of having a low maintenance system is now very appealing to me.

I'm not necessarily a hardcore gamer but I do play games every other day and also run some LLMs locally every now and then. I'm not sure which one I should go for between Bazzite and Aurora. Maybe someone who has run both can give their opinion.

1317
43
submitted 4 months ago* (last edited 4 months ago) by Tekkip20@lemmy.world to c/linux@lemmy.ml
 
 

Hear me out, the big players in the Linux space I.e. Canonical, Red Hat and SUSE could release trailers commercially on TV and social media to general users who may not be tech savvy or have a "basic windows" lingo in IT.

I know what you'll say "Granny smith and Dave the accountant aren't gonna care". That's fair but the adverts could outright say about how MS is a nortorious privacy invader and that you and your family could save spending more money on a supported Win 11 laptpp by just upgrading to Ubuntu or Linux Mint on one you already own with carefully simple instructions.

I understand that they use YouTube, I'm just talking about more traditional sorts of advertising, these firms are pretty big in the enterprise server space and considering they offer desktop versions of their respective distros, you'd think they would try cater to that market as well.

TLDR : Big corpo has money, advertise their distro, make them a better alternative.

1318
9
submitted 4 months ago* (last edited 4 months ago) by governorkeagan@lemdro.id to c/linux@lemmy.ml
 
 

The title is a quote from Mastodon. I’ve always seen dislike towards snap so I was taken back when I saw this stance. The person who wrote this was referring to Tuxedo Laptops.

What are your thoughts on this?

EDIT:

Here’s the original comment: https://mastodon.social/@popey/112591863166141029

EDIT 2:

Some clarification for those accusing me of not following the thread or being disingenuous.

Didn't bother to follow the thread?

https://mastodon.social/@popey/112593520847827981

I posted my question here before this particular response from the OP. I asked the question on Lemmy out of interest and wanting to get a wider perspective. I also engaged with the OP on the thread so that I can get their perspective on their stance.

1319
 
 

Just had this idea pop up in my mind. Instead of relying on volunteers mirroring package repositories all around the world, why not utilise BitTorrent protocol to move at the very least some some load unto the users and thus increase download speeds as well as decrease latency?

1320
1321
 
 

This is the laptop in question. It has an x86 processor so basically any distro should work on it. However, it is still a Chromebook which likely means Google fuckery in the BIOS. But it's great value for the money (can get it $300 off at Costco) and if I can plop Linux on to it then I'd love it.

1322
 
 

I recently dual booted linux mint on my laptop, and I came across the infinite squashfs error (an infinite amount of "SQUASHFS error: Unable to read page" and "SQUASHFS error: Unable to read data counting up, I think because I took out the usb and pressed enter too quickly) I couldn't do anything, so I shut down and restarted, upon restart, its running fine? No corruption.

Edit: I reinstalled and waited a while after unplugging before and enter did not work, I hit escape and this happened again, though text is bigger and slower

1323
1324
1325
view more: ‹ prev next ›