News for hackers. Stuff that matters.
Re:Linux touchpad: preliminary project funding, survey results by eth0up on Tuesday May 19, 2020 @11:40AM (#23236050)
Perhaps the only thing other than a certain leviathan that I loathe in Linux, is the touchpad. I have butchered laptops as a result of touchpad induced madness. I've tried synclient and other tweaks to no sufferable avail. My present laptop has the touchpad removed by pliers. I used the term "madness" sincerely. I think the present situation might be eligible for a place in the wiki for Unethical Human Experimentation. Of course, Linux is not entirely to blame; the physical quality has declined immensely for most touch/clickpads.

Perhaps someday I'll experience playing go without a mouse and risk of hypertension.

I'm typically not one to use the term - but godspeed, in this case!

Re:Linux touchpad: preliminary project funding, survey results by the8472 on Tuesday May 19, 2020 @12:07PM (#23236426)
> My present laptop has the touchpad removed by pliers.

Under which circumstances is disabling it on a software level insufficient?

Re:Linux touchpad: preliminary project funding, survey results by eth0up on Tuesday May 19, 2020 @12:12PM (#23236498)
An emotional one.
Re:Linux touchpad: preliminary project funding, survey results by the_af on Tuesday May 19, 2020 @09:45PM (#23242450)
I like your honest answer.

I can't stand laptop touchpads on any OS (except Apple trackpads, which I admit are usable, but I don't own a macbook so this point is moot). I can't stand most laptop keyboards either. I use an external keyboard and mouse in every laptop, making them effectively "portable computers".

Re:Linux touchpad: preliminary project funding, survey results by TheSpiceIsLife on Tuesday May 19, 2020 @10:50PM (#23242825)
Now there's something you don't see every day.
Re:Linux touchpad: preliminary project funding, survey results by the_af on Wednesday May 20, 2020 @09:40AM (#23246653)
I love this and your subsequent responses. I want to share one of my own.

A few years back -- so I cannot blame the pandemic -- I was fed up with my old Dell XPS. It was originally a pretty awesome laptop, but it was reaching the end of its useful life and it had many quirks. One was a key that was acting weird. In a fit of rage -- and I trust you'll understand me -- I decided to remove the key to see what was the deal, and proceeded to disassemble the whole laptop to do so, tugging at cables, forcing the case, twisting things out of the way. Because YouTube tutorials weren't clear enough, I ended up destroying the laptop. I didn't even find the reason the key was acting up.

With the laptop re-assembled but clearly beat up, parts of it destroyed, my wife arrived, took a look and said:

"You know you could have removed the key without dismantling the laptop, right?" and proceeded to show me how. In my rage I hadn't even considered this.

I wanted to buy a new laptop, anyway!

Re:Linux touchpad: preliminary project funding, survey results by LeifCarrotson on Tuesday May 19, 2020 @05:15PM (#23240304)
My ThinkPad has two sets of buttons - one with a middle mouse button below the spacebar, and one with just left and right click below the trackpad that practically hangs off the bezel.

Fortunately, the trackpad flex cable only connects to the bottom pair of buttons, so unplugging the flex cable is a completely non-destructive process that leaves the trackpoint and mouse buttons completely functional and makes my laptop somewhat secure against other people trying to use it! I will admit that this non-destructive method lacks the catharsis that pliers could provide.

Re:Linux touchpad: preliminary project funding, survey results by agapon on Wednesday May 20, 2020 @03:25AM (#23244225)
By the way, modern touchpads support HID feature reports to disable surface and buttons. Usages 0x57 / 0x58 in the Digitizer page. The Linux driver is aware of those but uses them only to ensure that everything is turned on. I think that it really should expose an interface for a user to control those bits.
Re:Linux touchpad: preliminary project funding, survey results by mroche on Tuesday May 19, 2020 @10:31PM (#23242716)
Have you considered (if you’re in a position to) purchasing a tablet to use as an oversized trackpad? My Wacom has come in a handy a few times I didn’t want to use the pen and I forgot my mouse somewhere (my laptop trackpad is not great).
Re:Linux touchpad: preliminary project funding, survey results by holyDictionary on Tuesday May 19, 2020 @12:14PM (#23236548)
I've set easy keyboard shortcuts to enable/disable the touchpad, and that has been working for me. But I understand how you feel, the palm rejection is especially terrible, no matter how I try to tweak it.
[dead]
Re:Linux touchpad: preliminary project funding, survey results by eth0up on Tuesday May 19, 2020 @12:18PM (#23236606)
Thanks for the psychoanalysis. Two of what you mentioned are inevitable. The exercise part is taken care of by the default settings which require multiple laps to impel the indolent pointer across the screen, and finally, I meditated deeply during the excision. See; you're a pretty astute therapist after all.
Re:Linux touchpad: preliminary project funding, survey results by Gaelan on Tuesday May 19, 2020 @02:15PM (#23238145)
Thanks for the chuckle.
Re:Linux touchpad: preliminary project funding, survey results by Answerawake on Tuesday May 19, 2020 @12:41PM (#23236957)
For people that are highly invested in their work, the computer is more than just a tool, it is an extension of themselves as it is their link to their deep-seated passion. I feel for the author as I have had to deal with terrible technology hampering me at bad moments as well. I wonder what is preventing them from trying something like a Mac. I have three computers under my desk (Windows, Mac, and Linux) and I always find Mac to be the least bad experience(although all three are regressing in my opinion).
Re:Linux touchpad: preliminary project funding, survey results by nitrogen on Tuesday May 19, 2020 @01:14PM (#23237351)
Years ago when I had to switch from Linux to Mac for work, the different keyboard shortcuts for simple things like copy, paste, word left, move selection with cursor, etc. killed me. There are ways to change some of them, but Electron apps and various websites have hard coded emulations of the defaults.

My coworkers simply refused to empathize with my frustration, but it's seriously like having a malfunctioning limb when a neurally deeply learned technology starts failing you.

Imagine a nightmare where when you try to open your hand and it closes, you try to move your arm outward and it smacks you in the face, you try to look down and your eyes instead flail randomly, and your legs are moving in slow motion while the monster is hunting you down.

Re:Linux touchpad: preliminary project funding, survey results by jorvi on Tuesday May 19, 2020 @02:19PM (#23238194)
Now imagine coming from years of Mac use to Linux or Windows, and discovering to your horror that because the modifier key on those platforms isn't cmd but ctrl you cannot do many of the default shortcuts you're used to in the terminal.
Re:Linux touchpad: preliminary project funding, survey results by Gracana on Tuesday May 19, 2020 @03:29PM (#23239049)
Yep, Apple really nailed it with that choice. Not only can you use GUI key combos in the terminal, but also you can use terminal line editing key combos in the GUI. That's something that seems like it ought to be possible in Linux, but afaik it is not.
Re:Linux touchpad: preliminary project funding, survey results by reuben364 on Tuesday May 19, 2020 @05:42PM (#23240642)
One thing one my wish list of things that will probably never happen is an extensible EMACs, Jupyter hybrid with a full on highly extensible dependently typed programming language. By keeping the specification of the components as abstract as possible, one could reinterpret the same code to give a completely different and customizable user experience. Probably with a lens based GUI toolkit for interactive widgets.

I have no idea if it is possible, and maybe I should be the change I want to see in the world.

EDIT: I realize now this doesn't quite follow the conversation, but I wanted to get the thought out somewhere.

Re:Linux touchpad: preliminary project funding, survey results by K0SM0S on Tuesday May 19, 2020 @06:32PM (#23241077)
OK, I'll bite that sandwich.

Can you expand some of these points? I fail to understand (I need an ELI5, first principles)

I think I get the premise, EMACs/Jupyter hybrid with ext. prog. lang. (+1 for typed).

> By keeping the specification of the components as abstract as possible, one could reinterpret the same code to give a completely different and customizable user experience.

Custom UX is my pet peeve, has been forever since the 1990s. I have intuitions but no clear understanding of what you mean here. Does that essentially mean decoupling model/view, a more modular or stateless metaphor?

> Probably with a lens based GUI toolkit for interactive widgets.

lens? (impossibly hard for me to Google what that generic word refers to, I just tried)

————

I'd like to 'get' to the essence of the paradigm you're suggesting. What the 'magic' is, its endgame, what it 'feels' or looks like.

Re:Linux touchpad: preliminary project funding, survey results by edjrage on Tuesday May 19, 2020 @07:13PM (#23241440)
Maybe they're referring to this? https://en.wikibooks.org/wiki/Haskell/Lenses_and_functional_...

As for the "abstract specification", I interpret it as decoupling the view from the model too, but maybe expressing how you can represent the model? Like "option" being representable by a dropdown or radius buttons. I don't know, I agree it's vague.

Re:Linux touchpad: preliminary project funding, survey results by reuben364 on Tuesday May 19, 2020 @08:35PM (#23242064)
So there are sort of several ideas floating in my head. Keep in mind, these are very loose and I am talking way out of my league here.

I said lenses, but the more general term is optics (still vague and unsearchable, I know). A certain representation of optics was popularized in Haskell by Edward Kmett partly as a way to solve the record access problem, but they are way more useful then that.

Lenses, in a context of programming, can sort of be seen as a vast purely functional generalization of l-values.

When you are manipulating affordances in a user interface, you can view it as manipulating part of larger state. That is something that fits very well into the framework of optics. A simple example would be a color picker using different color models. HSV and RGB are both views of the same object. A slider for each of hue, saturation, value, red, blue and green can be seen as a lens from color to a magnitude. By adjusting the slider, you change the state.

Some parts of a user interface are dynamical systems, i.e. evolve over time based on state and locally available actions. One can imagine a platformer game with changing player position, or a media player with a slider. FRP delves into this, but I'm not too familiar with the literature. I am vaguely aware that lenses can be connected to dynamical systems, but I don't understand it at all.

As far as reinterpreting code. In Haskell and typed functional programming in general, there is this tower of different abstractions you can use to describe different levels of reified computation (Functors, Applicatives, Arrows, Monads). You also get effects systems, which make it more tractable for the layman that doesn't want to read ω+1 monad tutorials.

In these abstractions, one can make "free" constructions, which sort of have the flavor of making the thing as syntactic as possible while still following the laws that must be upheld by the abstraction. This makes it possible to write code separately from the way it is interpreted.

I only have a vague feeling that these concepts will fit well together. Perhaps my head is too far in the clouds.

EDIT: As far as model view separation, that it is. But the idea is to stratify it even further. You have your larger state of the whole application in which you can increasingly select parts of the whole and manipulate them. The lens part not only captures the translation from the model to the view, but also from actions on the view to the model.

Re:Linux touchpad: preliminary project funding, survey results by reuben364 on Wednesday May 20, 2020 @01:05AM (#23243451)
Replying because its too late to edit EDIT: I'm struggling to find the source connecting lenses to dynamical systems. I might have misremembered, and was pretty tired, so take that with a grain of salt.
Re:Linux touchpad: preliminary project funding, survey results by K0SM0S on Thursday May 21, 2020 @05:31AM (#23256443)
That's a lot to take in, let me get back to you a bit later.

Extremely interesting, I must say at first glance. You're definitely technically stronger than me in most of these topics, I'll have to work on it a bit to clarify some of these concepts.

Thanks for an insightful and candid thinking out loud. Much appreciated. I wish other people would chime in as well to further the discussion, I'm afraid I won't be able to elaborate much technically but rather speak high-level UX concepts. What's interesting is that your general approach seems to answer an essential problem (and opportunity!) in systems whose complexity far exceeds human cognition (that's what I get from the 'lens', not what's on Google about it but the object in your head you call as such; it is sometimes hard to explain such things in a word, rather takes a book chapter).

Thanks again, I'll revisit this WE.

Re:Linux touchpad: preliminary project funding, survey results by nonbirithm on Tuesday May 19, 2020 @07:23PM (#23241510)
How would Emacs with a typed programming language work with function redefinition?

One of the benefits of the environment is I can change code very easily and see the changes quickly. But with types I'm not sure how you'd change the signature of a function and get it to recompile if it's already used elsewhere.

Re:Linux touchpad: preliminary project funding, survey results by reuben364 on Tuesday May 19, 2020 @08:06PM (#23241852)
That's one thing I have been thinking about. I think Haskell and other statically typed functional programming languages would benefit from a more interactive REPL like experience for "non-pure" programming where you are sort of changing the wheels on a moving car.

This has a very reactive flavor, so I think you could have a sort of functional reactive approach where your hot-swappable definitions are represented as behaviours over time.

How to make that get out of your way until you actually want to swap things out, I have no clue. I think it will involve some sort of effect system, but I'm not sure if that will solve the problem.

Re:Linux touchpad: preliminary project funding, survey results by reuben364 on Thursday May 21, 2020 @12:11PM (#23260245)
I realize now that you were talking about changing types, which I didn't factor in. I guess what would happen is you would cascade the hot swapping, reloading anything which depends on the function for which the type has changed.
Re:Linux touchpad: preliminary project funding, survey results by Reelin on Tuesday May 19, 2020 @08:54PM (#23242198)
I can't speak to Windows but at least on Linux that's entirely determined by your desktop environment and terminal emulator. For example, KDE offers near complete configurability of keyboard shortcuts including the ability to specify different sets of active shortcuts based on an application being open or in focus. Taking it even farther, you can use xmodmap (deprecated but simpler) or xkb (full functionality but more complicated) to completely redefine how physical keypresses are translated into software events.

You can do virtually anything on Linux if you're willing to invest the time.

Re:Linux touchpad: preliminary project funding, survey results by Gracana on Wednesday May 20, 2020 @09:52PM (#23254097)
Yeah, I've set it up before but there's always a program or two that doesn't pick up the settings. And you still don't get the ctrl-<letter> line editing tools in text boxes like you do on Mac OS, so I feel it's more trouble than its worth.
Re:Linux touchpad: preliminary project funding, survey results by Reelin on Thursday May 21, 2020 @01:56AM (#23255256)
Luckily I haven't run into that, but then I'm not using any commercial software currently and the stuff in the official repositories tends to work the way you would expect it to. Generally your settings should work pretty much independently of any program you happen to be running - xkb in particular is processing the key events at quite a low level.

Regarding the line editing tools you mentioned that sounds to me like something built in to the native UI toolkit (I'm just guessing here though). Reconfiguring how physical keys are interpreted can obviously only do so much. I'd never heard of those shortcuts before and they sound like a really useful feature.

Re:Linux touchpad: preliminary project funding, survey results by Gracana on Saturday May 23, 2020 @09:11AM (#23282635)
Huh, last time I tried it, I think firefox had trouble picking up my settings. I think that was more than five years ago though, so it's likely things are better now. :)
Re:Linux touchpad: preliminary project funding, survey results by Wowfunhappy on Tuesday May 19, 2020 @09:51PM (#23242487)
I didn't have that much trouble switching initially.

However, when I have a task that requires continually switching between Mac and Windows machines, it gets annoying. Double that frustration again when I'm using a Windows VM on a Mac.

Re:Linux touchpad: preliminary project funding, survey results by ghostpepper on Tuesday May 19, 2020 @12:48PM (#23237022)
I also spend many hours per day on the computer, both for work and leisure, and for this reason I have invested money and time finding high quality: chair, desk, monitors, headphones, mouse and keyboard.

I understand that not everyone has the luxury of space for a full WFH setup but I can't imagine doing 8-10 hours per day with only a 14" laptop at the kitchen table. This is why, for me, a Mac quality trackpad experience on Linux is closer than a nice-to-have than a necessity.

Re:Linux touchpad: preliminary project funding, survey results by edjrage on Tuesday May 19, 2020 @01:39PM (#23237706)
Interestingly I've been using a 12" laptop as my daily driver with a crappy chair, desk and earbuds and no monitor for over two years and I've had no cardiovascular problems so far. Stressed people are quick to blame their environment (tools and whatnot) but fail to take a hard look at themselves.
Re:Linux touchpad: preliminary project funding, survey results by Disposition on Tuesday May 19, 2020 @09:56PM (#23242510)
Genes and your body's physical characteristics have a lot to do with it. I have a slipped disk in my neck from bad posture related to using missized chairs and desks while looking down at a 12" laptop for years and I'm not even 30 yet.

The combination of slouching your shoulders forward to keep your hands together and face-down for typing on a small keyboard, and looking down exacerbate such problems, faster for some than others—unless you happen have the build of a horse jockey.

Re:Linux touchpad: preliminary project funding, survey results by Frondo on Tuesday May 19, 2020 @07:59PM (#23241789)
Same here, except it's an 11" MacBook air! And I'm old enough to remember Clinton's presidency well.

I think some of us are lucky to have a flexibility gene activated. I have a 24" display I sometimes plug it into, but I've been working off this setup for a few months and it's fine.

Re:Linux touchpad: preliminary project funding, survey results by NikolaNovak on Tuesday May 19, 2020 @03:07PM (#23238806)
Age?

:->

Re:Linux touchpad: preliminary project funding, survey results by edjrage on Tuesday May 19, 2020 @03:16PM (#23238903)
Old enough to be mindful about the health consequences of worrying about the wrong things and not worrying about the right things.
Re:Linux touchpad: preliminary project funding, survey results by NikolaNovak on Thursday May 21, 2020 @09:12AM (#23257906)
I'm merely asking because the things I could get away in my 20's and things I can get away with in my 40's appear to be wildly different, and I don't seem to be an outlier in this respect :)

(mind you, for me second monitor is about sanity/efficiency, not ergonomics; but a well adjusted chair, keyboard and mouse make a stunning difference to my fingers & wrists these days)

Re:Linux touchpad: preliminary project funding, survey results by edjrage on Tuesday May 19, 2020 @01:34PM (#23237645)
But there are many alternatives. My suggestions are one such alternative. Getting a Mac is another. Or using a mouse. Or switching to a keyboard-only workflow. None of them need to involve killing yourself because a crappy touchpad driver is between you and your "deep-seated passion".
Re:Linux touchpad: preliminary project funding, survey results by sitkack on Tuesday May 19, 2020 @12:15PM (#23236563)
Says the guy using a Mac, the best touchpad within 5 parsecs.
Re:Linux touchpad: preliminary project funding, survey results by edjrage on Tuesday May 19, 2020 @01:29PM (#23237568)
Actually such an aggressive response (from the GP, not you) is precisely the kind of thing I'd expect from someone who has an easy life. I live in pretty crappy conditions, including a crappy computer with crappy touchpad drivers. I just refuse to let such mundane things give me hypertension.
Re:Linux touchpad: preliminary project funding, survey results by sitkack on Tuesday May 19, 2020 @03:01PM (#23238732)
I have an old X1 Carbon that I use at the grunge travel laptop, like throw it in the backpack in a paper bag and go for a hike level of grunge.

Its trackpad is junk, phantom movements, zero palm rejection. I coded up some lock scripts so that it locks out the buttons if the cursor is moved. I fantasize about DeepTrack, the AGI that will finally give me trackpad bliss on a Linux desktop.

Re:Linux touchpad: preliminary project funding, survey results by davidandgoliath on Thursday May 21, 2020 @02:49AM (#23255531)
You might want to give the latest fedora a try, we've got the same model and it's flawless for me.