Skip to content

u/Hi-Angel

In this archive from Dec 2016 to Nov 2026

1
posts
29
comments
0
media
73
score

Top posts

Top comments

I'm wondering: are you sure this does not happen without GRUB? It may well be a firmware or hardware problem, and is not relevant to GRUB or GNU/Linux.

If you are, then I think this is a bug in a Windows graphics driver. Perhaps what happens is that after GRUB quits, some GPU registers are initialized to non-default state. Which is fine. But one of Windows drivers may have not taken into account such possible state and fails.

I'm just speculating though.

5 points

u/tenmajr I concur with this advice. If I'd do that for hobby purposes, which implies limited amount of time for being overly thorough, I would simply take existing tablet driver, preferably the smallest one (I'd use wc -l on the directory with drivers to find smallest one), then I'd replace various identifiers to match my tablet (and also various other stuff that I deem necessary; sorry, I can't be anymore explicit. Just read the code and see if you notice anything that looks tablet-model-specific); compile it; and insmod it, then see how it goes. Then what I'd do is I'd incrementally work through problems. Finally, after all of that seems to work, I'd clean the code up and remove the code from old driver that turned out to be unneeded. And finally, I'd move my changes to a separate driver, by following for example this blog-post to have new driver properly set up.

A few things you might find useful:

  1. Run the same kernel as the one you're developing against (I'd prefer latest stable). Because internal APIs change, things get refactored, etc, so this is to avoid any unpleasant surprises.
  2. After you've built the driver, you can run it straight from the build directory by running insmod /path/to/module.ko.
  3. You can build a single module with a command similar to make M=drivers/scsi/cxgbi. But there's a catch: make sure the driver you're building is enabled in menuconfig. To figure out which one it is open Kconfig file in driver directory and read descriptions. You can later search for that description in menuconfig to enable it.
  4. Use git to save on every change. You don't need to be clean at this point, you just want to have a room for experimenting and ability to go back in history. Imagine you're like playing a tense video game like Dark Souls and you're not sure if you die on the next step. Saving before every change will allow you to care less about that. And git push your changes to a remote server once in a while too.
4 points

Subreddits

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.