Skip to content

u/YellowOnion

In this archive from Sep 2009 to Oct 2023

1
posts
34
comments
0
media
115
score

I know this is a little out of date, but I think it needs to be made more clear:

uinput is for low-level emulation of input devices.

/dev/uniput is where you control the device from, when you create a device, a new input device appears in /dev/ that *outputs* the events, and udev will setup permissions on this device.

A raw input device can be grabbed by an application so that it has exclusive access to the events.

It has nothing to do with wayland, wayland still needs read from the input device, and then translate it in to wayland input events, a wayland compositor might grab the devices so they can't even be read by root users.

Wayland only provides safe access to compositor input events, old less safe methods of access will still exist until we can fully drop legacy support.

1 points

I think the main difference that most people haven't mentioned is that most "linux" OS's use the same core software projects.

The primary philosophy is that it's a lot easier to cooperate and reuse other peoples software, than to rebuild it yourself.

So the core "GNU/Linux" stack is basically a bunch of software that's shared between the majority of OS's and these projects have big amounts of funding either via direct contribution of various companies developers (i.e. Google needs x feature, so they make it submit it back to the Linux project). Or they're funded indirectly via sponsorship of said projects.

AMD, Intel, Google, Facebook can't just add features to Windows or fix bugs, so they chose linux because they can make changes to Linux or the other GNU tools (like GCC) that suite their needs.

For example it's a lot easier for AMD to take a linux kernel, and a compiler like GCC or LLVM and update it for their new CPU architecture than deal with Microsoft Windows, or write their own test code from scratch.

It's very much a "building off the shoulders of giants" thing.

It's a lot easier to "poach" talent and companies when there's room to innovate on top of existing open source products, instead of reinventing the wheel.

1 points

Maybe have a look a xsetwacom and move the tablet to the other monitor?

$ stylus=$(xsetwacom list | grep stylus | awk -F'\t' '{ print $1 }')
$ xsetwacom set $stylus MapToOutput 1120x792+1920+120

I use this to restrict it to a sub region of the display, this positions a box, of 1120x792, with the upper right corner at x=1920, y=120, which matches the offset of my right-hand display output by $ xrandr --current | grep ' connected':

DisplayPort-0 connected primary 1920x1080+1920+120

I know Gnome has support for moving the tablet to a specific monitor, in settings, but unsure about Cinnamon.

1 points

it has a smaller user based

You're wrong, it has a smaller user base, in the consumer PC market.

Linux is powering Android phones, and 40% of the internet, while Windows only 28%. Considering Linux can run on a router with 128MB of RAM, and Windows 10 needs a bare minimum of 4GB just to boot quickly, I bet the Windows Server market is doing less with the number of computers they have compared to a lean Linux server.

2 points

Mine was a combinations of things, frustrations with Windows 10 bloat (eats 4GB of memory for no reason), lack of features, concerns with their direction to a "ad based model", which is being the cancer of modern privacy violations, and after one update my clock was corrupted, I could have done a fresh install, but migrated back to Linux after a 8~ year hiatus.

Hard drives have hit a wall $$/TB and SSDs are getting good but are not yet a proper replacement, windows pro has terrible support for things like RAID and SSD caches, I'm not forking out huge amounts of money to buy Windows Enterprise, just like I'm not buying Xeon to get ECC RAM, I don't like this idea that industry thinks consumers don't care about data corruption (who here would be mad if their family photos got lost due to a drive failure?).

After realizing my desktops 2TB drive is almost 10 years old, and recently getting a new Desktop Computer, and my Laptop SSD failed, I bought 2, 4TB HDDs, and a 500GB NVMe SSD, installed NixOS on a bcachefs formatted drives.

There's still a lot of frustrations with Linux, Multi-monitor support in Gnome is broken if you game, There's no decent solution for anti-cheat in Linux, so good luck playing competitive online games even in a Windows VM, Gnome has a lack of QA with some things (screenshot buttons don't work with drop downs or full screen windows, or have weird quirks like having to release alt first to get the correct type of screenshot).

I think the sacrifice has been worth it.

1 points

--fast is for decompression speed (1.6GB/s to 2GB/s), it seems to be that -19 the default is far too high, it's almost the same as xz at that point (at least there's better decompression speed), use -8 for same compression speed as gzip, but in reality disk storage is cheap, and CPU is expensive, once you add encryption and a decent SSD, your bottleneck is the CPU, I'm running lz4 on my bcachefs file system on a HDD, and will probably vary rarely touch zstd because it'll fight with other CPU resources, for example, video games are CPU intensive and a huge amount of assets need to be loaded in a sort time, so even lz4 is too slow for modern PCIe 4 SSDs.

3 points

ghc provides base, which is like the standard library, and a few other required libraries, so ghc would need to be split off from the "core" libraries, it seems like it might be easier to statically link everything with the dependency hell that comes with Haskell.

Building pandoc on Windows, I wonder how big the binary is with everything statically linked.

Edit: Pandoc is only 55MB with everything statically linked.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.