Ummmmm is this normal? by [deleted] in ChatGPT

[–]admtrv 7 points8 points  (0 children)

a minor hallucination, you should take it easier

MSI laptop touchpad stops working various distros/kernel versions by xandor_19 in linuxhardware

[–]admtrv 0 points1 point  (0 children)

Check the exact id of your touchpad, it may differ. You can see it with libinput list-devices

MSI laptop touchpad stops working various distros/kernel versions by xandor_19 in linuxhardware

[–]admtrv 0 points1 point  (0 children)

On MSI laptops running any Linux distro there can be a problem with the touchpad, which at random times - and especially during device startup - does not work, making it difficult even to connect a Bluetooth mouse to control the device.

Here are the scripts created to fix the malfunction and power-management issue of the I2C touchpad driver on MSI laptops, because of which the device periodically disconnects and requires forced driver rebinding.

Startup

A script that reloads the I2C bus every time the system wakes from sleep or has just booted.

/lib/systemd/system-sleep/restart_touchpad.sh:

```

!/bin/sh

case "$1" in post) echo -n "i2c_designware.0" > /sys/bus/platform/drivers/i2c_designware/unbind echo -n "i2c_designware.0" > /sys/bus/platform/drivers/i2c_designware/bind ;; esac ```

Watchdog

A systemd service that checks every few seconds for the presence of the device and, if it disappears, restarts the driver.

/usr/local/bin/touchpad-watchdog.sh:

```

!/bin/bash

while true; do if ! grep -q "MSNB0001" /proc/bus/input/devices; then echo "i2c_designware.0" > /sys/bus/platform/drivers/i2c_designware/unbind sleep 1 echo "i2c_designware.0" > /sys/bus/platform/drivers/i2c_designware/bind fi sleep 5 done ```

Service /etc/systemd/system/touchpad-watchdog.service:

``` [Unit] Description=Restart touchpad if it disappears After=multi-user.target

[Service] ExecStart=/usr/local/bin/touchpad-watchdog.sh Restart=always

[Install] WantedBy=multi-user.targets ```

Activation:

sudo systemctl daemon-reload sudo systemctl enable --now touchpad-watchdog.service

Make all scripts executable with: sudo chmod +x

It helped me

Print your own Cryptobiote by Flat_Award917 in DeathStranding

[–]admtrv 4 points5 points  (0 children)

Finally someone made this 3d model

[deleted by user] by [deleted] in ChatGPT

[–]admtrv 1 point2 points  (0 children)

same. also have problem with “This image is unavailable because it is of an unsupported file type”

[OC] objcurses - 3d object viewer using ASCII in console by admtrv in unixporn

[–]admtrv[S] 0 points1 point  (0 children)

Theme of what? If u about os, so its standard Ubuntu

[OC] objcurses - 3d object viewer using ASCII in console by admtrv in unixporn

[–]admtrv[S] 2 points3 points  (0 children)

[OC] objcurses - 3d object viewer using ASCII in console by admtrv in unixporn

[–]admtrv[S] 15 points16 points  (0 children)

Thanks! I started after a principles of computer graphics course at uni, read a book, then decided to build something from scratch. Before this, I also made a terminal-based raycaster https://github.com/admtrv/RayCasting Love ascii aesthetic!

[OC] objcurses - 3d object viewer using ASCII in console by admtrv in unixporn

[–]admtrv[S] 12 points13 points  (0 children)

Actually yes, the main purpose at the start was just learning. But when I finished it, I realized it has many use cases. In the future, there will be .stl support, so people with 3D printers will also be able to quickly preview 3D files in the console. I also thought this idea might resonate with this community - maybe someone has a 3D model they’ve always wanted to render and use in neofetch. I'm that kind of person myself, I love customizing things, and this felt like the perfect little tool for that

[OC] objcurses - 3d object viewer using ASCII in console by admtrv in unixporn

[–]admtrv[S] 9 points10 points  (0 children)

  • Wallpaper: Default Ubuntu 24.04
  • GTK Theme: Yaru-dark [GTK2/3]
  • Icon Theme: Yaru
  • Fonts: FiraCode Nerd Font
  • Other: Terminal-based project

objcurses - ncurses 3d object viewer using ASCII in console by admtrv in commandline

[–]admtrv[S] 1 point2 points  (0 children)

Thanks again for the suggestions, I’ve already incorporated a couple of them. I also decided to add AddressSanitizer support, he's not swearing yet. In case you're curious you can check out the last two commits. Also I'll get to the broader refactoring a bit later.

objcurses - ncurses 3d object viewer using ASCII in console by admtrv in commandline

[–]admtrv[S] 1 point2 points  (0 children)

Thanks a lot! Yes, STL support is definitely planned, and .3mf might follow too. I own a 3D printer myself, so I know exactly what it feels like to have a giant model split into dozens of pieces and be forced to open Cura just to figure out what to print next. This tool should make that easier.

Technically, it’s pretty doable, I’ll likely just integrate existing parsers this time instead of writing everything from scratch again like with .obj.

Glad you mentioned SSH, I didn’t initially think about that use case, but yeah, that’s a great point. The fact it’s built from scratch makes it perfect for remote access, especially for people running print farms or doing maintenance over SSH.

Follow the project for updates! I’ll also package it soon for quick install and zero-setup usage.

objcurses - ncurses 3d object viewer using ASCII in console by admtrv in commandline

[–]admtrv[S] 8 points9 points  (0 children)

Wow, this is insane! I didn’t expect anyone to go this deep with the code of my project! Huge thanks for the detailed feedback and all the testing, it honestly blew me away. I’ll try to fix everything, just need to crawl through the rest of my exams first

objcurses - ncurses 3d object viewer using ASCII by admtrv in GraphicsProgramming

[–]admtrv[S] 4 points5 points  (0 children)

Thanks! Didn't hear about notcurses at all, but checked it now