276
277
278
279
 
 

PeppermintOS? I'm trying to prepare an ancient Chromebook C202S for Linux and have had some ideas from antiX to MXLinux and Loc-OS, but it seems that PeppermintOS may be among the best choices.

The tech level of this Chromebook's end user is unlikely to work well with Arch + BSPWM, which was recommended to me by someone else.

280
281
282
283
284
submitted 1 month ago* (last edited 1 month ago) by to c/linux@programming.dev
 
 

Running Debian sid and it mostly works (still struggling with Nvidia drivers for video). Last night I was watching a video and everything was fine, sound worked. Son was in room "asleep". I left to use bathroom and then he came looking for me. I don't know what happened while I was in bathroom but now I hear nothing out of speakers. If I reboot into windows sound works so it's not a physical issue. Reboot back into Linux no sound. Boot off flash drive Linux, no sound but I think that was always true and was a alsamixer issue on flash drive Linux setups. Volume on YouTube turned to 100, verified not muted, volume in KDE at 100 and not muted. Physical volume on speakers at 100, volume knob on keyboard at 100 and mute not engaged. All volume sliders in alsamixer maxed out. Simple setup, 2.1 speaker system plugged into sound output on motherboard no mixer or fancy equipment.

Son is non-verbal and severally autistic so I can't ask him. Whatever happened was almost definitely an accident but I can't figure out what happened. I see like a lighter bar moving on the KDE volume slider which seems to match expected video audio so I believe KDE is receiving the signal to play sound but nothing comes out of speakers. He struggles to feed himself soup or cereal so it's not like he found some super secret command and is playing joke. Something seems to be accidently hit and is blocking sound... Maybe a mute hot key not synced to main audio controls so it's not obvious that it's active???

Edit... This is solved. KDE mixer and alsamixer made no change but changing the output in pavucontrol fixed it. I have no idea why or how. Thanks for everyone who recommended it.

285
286
287
288
289
290
291
292
 
 

I recently found this boxed copy of Linux for Windows from 2001. But what is it?!

293
 
 

I created a simple Nushell script that will always disable the default/internal monitor(s) on your laptop or external display when using AR glasses. I find this useful for when using AR glasses such as the XReal One which allows you to change the mode from regular mode to ultra-wide mode and when doing this, it will act as your unplugging the XReal ones and plugging in XReal one again in a new mode, causing the other display to become enabled.

To keep the laptop display always off, weather the laptop lid is either closed or open, this simple Nushell script will always disable the screen every X seconds (You can change it by changing the wait constant)

Simply copy this script and create a new Nushell script such as disable-displays.nu, add it to your startup applications with the command of nu /path/to/disable-displays.nu and it will run in the background. You will need to run xrandr command with all of your displays enabled to get the names of the displays and change the constants values in the script accordingly.

NOTE: This script may not work with a full Wayland setup and may only work on X11.

Enjoy

# RUN xrandr TO GET THE NAMES OF THE DISPLAYS AND SET THE VARIABLES TO THESE NAMES
const ar_glasses_display = 'USB-C-0'
const displays = [
    'eDP',
    'HDMI-0'
]

const wait = 5

def is-ar-glasses-connected [] {
    return (xrandr | str contains $"($ar_glasses_display) connected")
}

def disable-display [display: string] {
    xrandr --output $display --off
}

def enable-display [display: string] {
    xrandr --output $display --auto
}

loop {
    if (is-ar-glasses-connected) {
        for current_display in $displays {
            disable-display $current_display
        }
    } else {
        for current_display in $displays {
            enable-display $current_display
        }
    }

    sleep ($wait * 1sec)
}

OC by @trymeout@lemmy.world

294
 
 

https://gitlab.com/christosangel/hanoi

Hanoi is a simple terminal version of the known classical game Tower of Hanoi, written in Bash.

During the game, the user can move left and right, pick disks and drop them in other stacks.

The aim is to move all the disks from the ORIGIN pile to the DESTINATION pile, in as little moves as possible

hanoi.png

By Developer @christos@lemmy.world

295
296
297
298
299
300
view more: ‹ prev next ›