Welcome Guest ( Log In | Register )

455 Pages V « < 322 323 324 325 326 > »   
Reply to this topicStart new topic
> What is the last thing you thought?, Tech Edition

 
post Aug 6 2021, 15:11
Post #6461
cate_chan



Technekololigy Enthusiast
****
Group: Members
Posts: 406
Joined: 4-May 18
Level 114 (Ascended)


QUOTE(neopet @ Aug 6 2021, 14:30) *

work
you're either posting on e-hentai forums at work or thinking about work on your freetime, I'd advice neither

QUOTE(dragontamer8740 @ Aug 5 2021, 23:36) *

"Just don't use threads, then, lol."

But I am really struggling to think of when I'd be using curses in a threaded program. Do you have any examples of software that does this?
besides weechat having multiple threads going, though probably not for ui. I've written a terrible filemanager before (couldnt work out my annoyances with the existing ones). which throws preview rendering, loading, and some other things in threads and horribly wraps the majority of curses calls in a mutex in a futile attempt to not destroy itself.
probably a large collection of "you're not supposed to use it like that"

QUOTE(dragontamer8740 @ Aug 5 2021, 23:36) *

Also, I do enjoy curses programming, relative to many other libraries.
definitely agree, but with a very big emphasis on relative to the other gui libs.
I still hate the way it forces color handling to the pair stuff for example, and ruins manually sending control sequences.
might still just rewrite my few things to be independent of (n)curses at some point.

This post has been edited by cate_chan: Aug 6 2021, 15:19
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 03:55
Post #6462
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


QUOTE(cate_chan @ Aug 6 2021, 09:11) *
I still hate the way it forces color handling to the pair stuff for example, and ruins manually sending control sequences.
Curses' primary reason for existing is to make advanced console programs portable between many incompatible kinds of TTY's, transparently to the programmer. By setting the $TERM variable, curses is supposed to do whatever is within the capabilities of the terminal in use, as per its termcap or (in modern times) terminfo entries.

If you're sending raw control sequences, you're gonna break your program on my IBM 3161, for instance. Curses is designed to look up how to do things in a database and to do what it can that way.

Not all terminals even have colours to begin with, either. That's why my PS1 variable prompt colours are set using 'tput' instead of with raw sequences (so that the $TERM variable is respected). Sending VT100/VT220 or xterm vt220-style control sequences will mess things up on the 3161.

Anyway, you should still be able to use the regular standard library putchar() or printf() to do raw sequences, right? Curses might not like it, but I think it'd work.

The only way to run some badly written programs that hardcode stuff like that on a 3161 or any other non-VT100-descendant machine is to run something like GNU Screen on it (Screen emulates a VT100-esque terminal, but uses curses to draw to the screen, so it can 'filter out' or adapt control codes to do what they should). So you're running a terminal emulator on your hardware terminal.

I've spent a lot of time mucking about with this stuff.
Attached Image

This post has been edited by dragontamer8740: Aug 7 2021, 04:19
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 14:05
Post #6463
EsotericSatire



Look, Fat.
***********
Group: Catgirl Camarilla
Posts: 12,767
Joined: 31-July 10
Level 500 (Ponyslayer)


Hardly any gamers are buying AMD cards atm.

According to steam only around 7% of gamers have bought AMD compared to 3000 series Nvidia.

I suppose they are just dumping everything into miners.


edit: Well apple is now looking through people's personal files and people are paranoid windows 11 will as well...



This post has been edited by EsotericSatire: Aug 7 2021, 14:58
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 16:35
Post #6464
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


QUOTE(EsotericSatire @ Aug 7 2021, 08:05) *
edit: Well apple is now looking through people's personal files and people are paranoid windows 11 will as well...
Apple wasn't already?
And people are just now getting paranoid?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 17:14
Post #6465
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


Rediscovered an old CCFL-based 17" WXGA (1440x900) LCD panel that I pulled out of an iMac I got rid of a few years ago. I kept it because I liked the color depth and wanted to make a new monitor out of it some day with a controller board kit from ebay.

I don't think it's cracked, either.

Now I'm realizing I don't know how I'll mount the panel/protect it from the back.

I don't care if it looks tacky or looks like a bomb to a normie observer; I just want it to be somewhat protected from damage. I did keep the metal bracket pieces from the imac, just need something to screw them onto.
It's got a matte finish on front so I'm not going to put glass over it. And I'd rather not find an existing working 17" 8:5 LCD monitor to rip the guts out of because then I have a useless LCD panel sitting around again.
Also note: would rather not use wood/cardboard, because it has an inverter and I don't want a fire if something goes wrong. I did keep the original inverter attached to the panel.

Anyone got ideas? It's a tad large for me to want to do the Lego method. I also do not have any 17" 8:5 laptop chassis sitting around.

[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/LKIHX3xg.jpg)
[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/v4o09jKg.jpg)
[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/vqDaMRCg.jpg)
[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/ilAI869g.jpg)

Also a retro computer meme
(IMG:[i.redd.it] https://i.redd.it/79diu8lrsha71.png)

This post has been edited by dragontamer8740: Aug 7 2021, 20:49
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 21:24
Post #6466
Katajanmarja



Regular Poster
*****
Group: Gold Star Club
Posts: 678
Joined: 9-November 13
Level 393 (Godslayer)


QUOTE(dragontamer8740 @ Aug 7 2021, 17:35) *

Apple wasn't already?

According to the news I read, this is the first time they are integrating this type of spyware into their smartphone hardware; similar things have been done earlier in the realms of software by multiple actors.

It is a notable step towards transforming smartphones into portable telescreens – even if it is merely one step.

I’m waiting for the day when one cannot switch off one’s smartphone any more: In order to stop the device from eavesdropping, both the battery and the auxiliary battery must be removed, which in turn cannot be done without breaking the phone. The location of the auxiliary battery is not even mentioned in user instructions, because the user is supposed to throw the phone away once that one dies.

QUOTE
As O’Brien passed the telescreen a thought seemed to strike him. He stopped, turned aside and pressed a switch on the wall. There was a sharp snap. The voice had stopped. Julia uttered a tiny sound, a sort of squeak of surprise. Even in the midst of his panic, Winston was too much taken aback to be able to hold his tongue. ‘You can turn it off!’ he said. ‘Yes,’ said O’Brien, ‘we can turn it off. We have that privilege.’


This post has been edited by Katajanmarja: Aug 7 2021, 21:43
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 7 2021, 23:48
Post #6467
cate_chan



Technekololigy Enthusiast
****
Group: Members
Posts: 406
Joined: 4-May 18
Level 114 (Ascended)


QUOTE(dragontamer8740 @ Aug 7 2021, 03:55) *

If you're sending raw control sequences, you're gonna break your program on my IBM 3161, for instance. Curses is designed to look up how to do things in a database and to do what it can that way.

Not all terminals even have colours to begin with, either. That's why my PS1 variable prompt colours are set using 'tput' instead of with raw sequences (so that the $TERM variable is respected). Sending VT100/VT220 or xterm vt220-style control sequences will mess things up on the 3161.

Anyway, you should still be able to use the regular standard library putchar() or printf() to do raw sequences, right? Curses might not like it, but I think it'd work.
for some reason I remember putchar/printf/whatever not liking my raw sequences for setting colors and giving up right away.
but it might've been I only ever tested with mvprintw.

beautiful setup btw. I always wondered in what case the letter labels on rotary phones were used.
do you still use that phone or is it incompatible with the modern phone system?

QUOTE(EsotericSatire @ Aug 7 2021, 14:05) *

edit: Well apple is now looking through people's personal files and people are paranoid windows 11 will as well...
shocking, reminds me of people being surprised about the "facebook mines userdata for advertising" '''''''news'''''''

This post has been edited by cate_chan: Aug 7 2021, 23:49
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 8 2021, 02:54
Post #6468
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


QUOTE(cate_chan @ Aug 7 2021, 17:48) *
for some reason I remember putchar/printf/whatever not liking my raw sequences for setting colors and giving up right away.
but it might've been I only ever tested with mvprintw.

beautiful setup btw. I always wondered in what case the letter labels on rotary phones were used.
[en.wikipedia.org] https://en.wikipedia.org/wiki/Rotary_dial#Letters
I don't use them for data entry; the phone isn't hooked up via acoustic coupler or anything. I used a null modem cable to my desktop.

It's a lot more comfy to do work on that amber screen late at night than my (pretty bright) LCD. Need to get that thing recapped so I don't feel scared of killing it every time I use it. It really needs recapping. Maybe a new flyback, too, since they're still on ebay (just preventative maintenance, since it or the capacitors are making some loud noises…). I suspect the current flyback is going to die if I don't replace it.

do you still use that phone or is it incompatible with the modern phone system?
Unfortunately that phone belongs to my parents now; I do have a similar one, though. It's on my current desk; if I didn't have the lights out for a monitor calibration I'd take a picture for you… maybe later.
For now here's a crummy one I have on-hand. And yeah, that's a peace dollar on the dial face.
Attached Image

Also, they still work on land lines here, except some "routing" systems (like "press <n> for more options" menus) don't respond to pulse codes. People made touch tone adapters for these things to make them send out pulses, but I'm not gonna buy one yet.
QUOTE(cate_chan @ Aug 7 2021, 17:48) *
shocking, reminds me of people being surprised about the "facebook mines userdata for advertising" '''''''news'''''''
"NSA spies on us"
(shocked)

This post has been edited by dragontamer8740: Aug 8 2021, 02:55
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 8 2021, 08:13
Post #6469
EsotericSatire



Look, Fat.
***********
Group: Catgirl Camarilla
Posts: 12,767
Joined: 31-July 10
Level 500 (Ponyslayer)


QUOTE(dragontamer8740 @ Aug 7 2021, 04:35) *

Apple wasn't already?
And people are just now getting paranoid?


People on reddit were sucking Apple's dick because they were saying that Win 11 was spyware but apple had made a commitment to privacy...

In reality Apple has never had a commitment to privacy ever since they have hardware level identification for collecting data for advertising.

Using AI to spy on everyone's phones to punish wrong thinkers at the behest of governments is a step in the wrong direction.

QUOTE(cate_chan @ Aug 7 2021, 11:48) *

shocking, reminds me of people being surprised about the "facebook mines userdata for advertising" '''''''news'''''''


Yeah well, the public are derp and have a short memory. When apple started scanning phones to find pirated material people warned that it could be used to scan for anything else and that they would probably justify it with a 'think of the children' style campaign like they are doing now.

QUOTE(dragontamer8740 @ Aug 7 2021, 05:14) *

Rediscovered an old CCFL-based 17" WXGA (1440x900) LCD panel that I pulled out of an iMac I got rid of a few years ago. I kept it because I liked the color depth and wanted to make a new monitor out of it some day with a controller board kit from ebay.

Also note: would rather not use wood/cardboard, because it has an inverter and I don't want a fire if something goes wrong. I did keep the original inverter attached to the panel.

Anyone got ideas? It's a tad large for me to want to do the Lego method. I also do not have any 17" 8:5 laptop chassis sitting around.


I was going to suggest wood like an arcade cabinet style mounting so there is airflow at the back and you can mount a fan to reduce the risk of over heating.

This post has been edited by EsotericSatire: Aug 8 2021, 08:15
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 8 2021, 16:31
Post #6470
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


QUOTE(EsotericSatire @ Aug 8 2021, 02:13) *
I was going to suggest wood like an arcade cabinet style mounting so there is airflow at the back and you can mount a fan to reduce the risk of over heating.

I'm not worried about overheating; I just remember a time with some cheap walmart portable DVD player LCD when a ribbon cable came unplugged while it was turned on and I got a white arcing point on the inverter board.

Ventilation I can deal with; making wood a flame retardant, not so much.

The worst option is just finding an empty imac shell (or a dead imac) to put the panel in, but I really, really don't want to do that.

Wish I still had my erector set parts… I might have been able to make a monitor frame out of those. I seem to recall making a derpy VESA stand out of them years ago.

Thought: I wish reflective LCD's were more commonly available and still actively being improved in terms of colour quality; I'd love a graphics tablet with a reflective LCD screen (since it'd look a lot more like drawing on paper in ambient light). But the GBA and e-ink are the most recent "innovations" I can think of with them, unfortunately.

I blame the iPhone for telling manufacturers that people don't care about being able to see their screens outdoors. Lots of old flip phones used transflective LCD's (which have elements of both transmissive and reflective types, and are very much a compromise).

This post has been edited by dragontamer8740: Aug 8 2021, 17:37
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 9 2021, 04:09
Post #6471
lovemonkey13242



Lurker
Group: Recruits
Posts: 5
Joined: 29-October 12
Level 168 (Lord)


Man this is some beautifully preserved old hardware shared lately, you peeps are top notch! It displeases me that I cannot use Consolas font
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 9 2021, 07:59
Post #6472
EsotericSatire



Look, Fat.
***********
Group: Catgirl Camarilla
Posts: 12,767
Joined: 31-July 10
Level 500 (Ponyslayer)


I kinda feel bad sometimes for getting rid of all my retro stuff but it was all in storage for years.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 9 2021, 09:24
Post #6473
Adhinferno Bloodmoon



Illegitimate Son of Heaven
**********
Group: Members
Posts: 7,806
Joined: 20-April 12
Level 451 (Godslayer)


QUOTE(Wayward_Vagabond @ Aug 6 2021, 19:45) *

I undeestanding coding conceptually, and was getting my feet wet with basic at one point (Yeah, I know.), but trying to do it for any length of time just nakes my eyes cross.
I've programmed PLCs in ladder logic, but that's bascially an emulator for hardware. The last project I did on one, a gray code counter that counts up and down, I was starting to get fancier with flow control- using the states of I/O terminals that didn't physically exist as status flags, and having large blocks of logic controlled by them to add different modes.
The PLC already abstracts some things like time delay on, time delay off, and recycle timers. I do not recall if it had an alternating relay function.
I suppose I think more visually.
Edit: damn you, phone keyboard.


The last sentence make me laugh (IMG:[invalid] style_emoticons/default/biggrin.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 9 2021, 18:18
Post #6474
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


I did something somewhat interesting and very tedious over the last couple days. Using the colorimeter that I borrowed earlier, I mapped out the equivalent brightnesses (cd/m²) of each OSD brightness level on my desktop monitor, as well as their equivalent luminosities on my thinkpad laptop (which can be controlled on with 3,828 discrete levels via sysfs, and even more with a special tool that pokes into the registers directly).

After writing up a huge table, I made a shell script for my laptop which lets me enter a brightness value from the monitor OSD (or fetch it from the monitor directly via ddcutil) and set it to an equivalent value here.

I then had to make a reverse-association function, since I initially just entered in the brightness levels in a 'case' statement, which was fun to figure out.
What a pain in the ass. But at least I can adjust screens in lockstep now.
CODE
#! /bin/sh
bl_alert()
{
  1>&2 echo 'Warning: Laptop max is brightness 95 on external monitor. Setting to maximum (95).'
}

# Huge lookup table (probably should have done this in Lisp, now that I think about it).
# Values are mostly linear to cd/m², but there's a little wiggle room so every third or fourth value was found by
# trial and error and intermediaries were derived.
U2412Mbright(){
  case "$1" in
    0)
      echo 344
;;
    1)
      echo 370
;;
    2)
      echo 396
;;
    3)
      echo 421
;;
------SNIP------
    94)
      echo 3812
;;
    95)
      echo 3828
      # thinkpad maxes at 290 cd/m². External is just over 300 cd/m² max.
      # Warn if higher requested, but set regardless
;;
    96)
      echo 3828
      bl_alert
;;
    97)
      echo 3828
      bl_alert
;;
    98)
      echo 3828
      bl_alert
;;
    99)
      echo 3828
      bl_alert
;;
    100)
      echo 3828
      bl_alert
;;
}
rassoc()
{
  # reverse-association (get 0-100 OSD value back from the current sysfs brightness level).
  # WILL fail if the display is not number is not an entry in the case statement, so make sure this prints something when you use it.
  grep -B1 'echo '"$1" "$0"|head -n 1|sed 's/ *//;s/)//'
}
get_current_raw()
{
  cat "$SYSFSPATH"'/brightness'
}
get_current()
{
  rassoc "$(get_current_raw)"
}
bl24_up()
{
  BRIGHT=`get_current`
  # if on a known value
  if [ "$BRIGHT" ] && [ "$BRIGHT" -lt 100 ]; then
    echo "$(expr "$BRIGHT" '+' "$1")"
    U2412Mbright "$(expr "$BRIGHT" '+' "$1")" > "$SYSFSPATH"'/brightness'
  else
    1>&2 echo "$BRIGHT"
    1>&2 echo "err: Current brightness value not in table, or already maxed out."
  fi
}

bl24_dn()
{
  BRIGHT=`get_current`
  # if on a known value
  if [ "$BRIGHT" ] && [ "$BRIGHT" -gt 0 ]; then
    echo "$(expr "$BRIGHT" '-' "$1")"
    U2412Mbright "$(expr "$BRIGHT" '-' "$1")" > "$SYSFSPATH"'/brightness'
  else
    1>&2 echo "$BRIGHT"
    1>&2 echo "err: Current brightness value not in table, or already at minimum."
  fi
}
if [ "$#" -eq 0 ]; then
  get_current
else
  case "$1" in
    get)
      get_current
;;
    up)
      if [ "$2" ]; then
        bl24_up "$2"
      else
        bl24_up 1
      fi
;;
    down | dn)
      if [ "$2" ]; then
        bl24_dn "$2"
      else
        bl24_dn 1
      fi
;;
    *)
      if [ "$1" -lt 101 ] && [ "$1" -ge 0 ]; then
        LEVEL="$(U2412M_bright "$1")"
        echo "$1"' -> '"$LEVEL"
        echo "$LEVEL" > "$SYSFSPATH"'/brightness'
      else
        1>&2 echo "Err: please enter 'up,' 'down,' or a value between 1 and 100."
      fi
;;
  esac
fi


Thought: Wish I had a spectrometer so I could profile the backlight on my laptop a little better; I'm pretty sure the none of the correction presets in displaycal are 100% correct for this Hydis panel. Grays are still a little warmer on it than on my (much better) Dell panel. This one's been warm since the beginning, of course, and it's still waaayy better now than before calibration, but it's still bothersome.
I don't know who made the backlight for it, though; I guess Hydis could have had it made by some other company.

Also, isn't it strange how many weird companies we've never heard of make displays that just get rebadged by other companies?
I have CRT's with Chungwha picture tubes in them; apparently, they were a big name in CRT's and still make LCD's today, but I never hear about them ever and there's basically no English information about them out there even though they've been around since the 70's. BOE/Hydis got bought out, I think, but I'd never heard of them, either.

BTW, my thinkpad's monitor apparently only has 51.6% sRGB coverage. Yikes.
Definitely noticeable in my avatar (the pinks are a lot more subdued on the thinkpad).

This post has been edited by dragontamer8740: Aug 10 2021, 01:06
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2021, 01:48
Post #6475
cate_chan



Technekololigy Enthusiast
****
Group: Members
Posts: 406
Joined: 4-May 18
Level 114 (Ascended)


QUOTE(dragontamer8740 @ Aug 8 2021, 02:54) *

[en.wikipedia.org] [en.wikipedia.org] https://en.wikipedia.org/wiki/Rotary_dial#Letters
QUOTE

Letters were associated with the dial numbers to represent telephone exchange names in communities having more than 9,999 telephone lines, and additionally given a meaningful mnemonic to facilitate memorization of individual telephone numbers by incorporating their exchange names. For example: "RE7-xxxx" represented "REgent 7-xxxx", 'Regent' being a local exchange name used in Canada, derived from an earlier precursor telephone number, '7xxxx' –with callers actually dialing '73-7xxxx' (737-xxxx).
cant say it makes a lot of sense here currently [en.wikipedia.org] https://en.wikipedia.org/wiki/Telephone_num...lephone_numbers

QUOTE(EsotericSatire @ Aug 9 2021, 07:59) *

I kinda feel bad sometimes for getting rid of all my retro stuff but it was all in storage for years.
as long as its turned into a thriftstore or sold/given away if it was somewhat worthwhile. what pains me the most is perfectly fine thigns going to the dump.
then again cant save everything, but as someone that enjoys filling their place with old junk its annoying so many things escape the chance to be bought for near nothing by me.

QUOTE(dragontamer8740 @ Aug 9 2021, 18:18) *

Also, isn't it strange how many weird companies we've never heard of make displays that just get rebadged by other companies?
I have CRT's with Chungwha picture tubes in them; apparently, they were a big name in CRT's and still make LCD's today, but I never hear about them ever and there's basically no English information about them out there even though they've been around since the 70's. BOE/Hydis got bought out, I think, but I'd never heard of them, either.
not sure if it applies to this but a lot of brands got bought up and are used only in name/badge now to sell cheap generic products, usually by some new chinese or turkish parent company.
one that comes to mind is Grundig, used to be a decent av brand but now it being on some random device (I've seen vacuum cleaners), means nothing more than whoever owns the brand currently deciding "lets put that badge on it for the heck of it"

QUOTE(dragontamer8740 @ Aug 9 2021, 18:18) *

my thinkpad's monitor apparently only has 51.6% sRGB coverage. Yikes.
Definitely noticeable in my avatar (the pinks are a lot more subdued on the thinkpad).
ignorance is truly bliss, I think I'm happier not knowing how awful the color representation on my thinkpad panel(the cheapest 15.6" fhd one I could find ages ago) really is.

all the talk about backlight reminds me xbacklight started being unable to read back the value and couldnt go as dim anymore since some near bricking through coreboot.
could maybe work out some fix or workaround by doing it manually through sysfs as you mentioned, didnt know of that endpoint.

This post has been edited by cate_chan: Aug 10 2021, 02:03
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2021, 03:12
Post #6476
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


QUOTE(cate_chan @ Aug 9 2021, 19:48) *

cant say it makes a lot of sense here currently [en.wikipedia.org] https://en.wikipedia.org/wiki/Telephone_num...lephone_numbers

There was a Colbert Report thing years ago where had a phone hotline called '1-800-OOPS-JEW' for jewish people to apologize for killing Jesus or something. The running joke was that people would call it when they were actually looking for other services he shared a number with, like '1-800-NORS-LEZ,' for instance. That's basically how it works.
QUOTE(cate_chan @ Aug 9 2021, 19:48) *
as long as its turned into a thriftstore or sold/given away if it was somewhat worthwhile. what pains me the most is perfectly fine thigns going to the dump.
then again cant save everything, but as someone that enjoys filling their place with old junk its annoying so many things escape the chance to be bought for near nothing by me.
Apparently I missed a free Apple II the other week. I can feel that.
QUOTE(cate_chan @ Aug 9 2021, 19:48) *
ignorance is truly bliss, I think I'm happier not knowing how awful the color representation on my thinkpad panel(the cheapest 15.6" fhd one I could find ages ago) really is.
Yeah, most thinkpad panels (except maybe some of the old IBM "FlexView" IPS ones) suck. My non-tablet X201 has a similar color gamut to this one, but a heavy blue shift instead of red and far less contrast because it's a TN panel.

Honestly though, after calibrating, even with its bad coverage, things are looking significantly nicer on my thinkpad now. If you ever get a chance to borrow a colorimeter/spectrometer (or get one really cheap), definitely go for it. I returned the one I borrowed today, but I already am regretting not calibrating a couple of other displays/laptops I have floating around.

OTOH, I'm noticing more when programs don't have any provisions for colour management now… Firefox does, so it renders things quite differently from some other programs on my system. Considering modifying one or two to add color management functionality; I think the one written in python should be doable pretty easily since Pillow appears to have some color management code in it already.

QUOTE(cate_chan @ Aug 9 2021, 19:48) *
all the talk about backlight reminds me xbacklight started being unable to read back the value and couldnt go as dim anymore since some near bricking through coreboot.
could maybe work out some fix or workaround by doing it manually through sysfs as you mentioned, didnt know of that endpoint.
I did have to do a udev rule or a /etc/rc.local command or something like that to change the permissions on some things, but yeah, it's handy. There's also the acpi_backlight one, which basically corresponds to the BIOS' built in brightness increments.
If you have intel integrated graphics, there's at least a decent chance you can also use 'intel_backlight' from [gitlab.freedesktop.org] Intel GPU Tools.
It doesn't work on every machine (I have one or two it does not work on, not 100% sure why... maybe CCFL/LED difference?), but it does work on both my thinkpads, so it might be worth trying for you, too.
Also, eDP screens should have a couple more sysfs controls to mess with than my LVDS one.

I did a patch to that program to allow fractional brightness percentages, so I have insane amounts of control (can go even darker than the lowest value in sysfs), since it directly writes to a hardware register I think. Can turn off the backlight, too.
Here's the patch as applied to release 1.25, but I bet it still works on current.
CODE
--- tools/intel_backlight.c    2020-03-20 08:58:55.000000000 -0400
+++ ../../intel-gpu-tools-1.25/tools/intel_backlight.c    2021-06-07 17:01:47.063293905 -0400
@@ -46,16 +46,16 @@
    current = INREG(BLC_PWM_CPU_CTL) & BACKLIGHT_DUTY_CYCLE_MASK;
    max = INREG(BLC_PWM_PCH_CTL2) >> 16;

-    printf ("current backlight value: %d%%\n", current * 100 / max);
+    printf ("current backlight value: %.2f%%\n", current * 100.0 / max);

    if (argc > 1) {
-        uint32_t v = atoi (argv[1]) * max / 100;
+        uint32_t v = (uint32_t)(atof (argv[1]) * max / 100);
        if (v > max)
            v = max;
        OUTREG(BLC_PWM_CPU_CTL,
               (INREG(BLC_PWM_CPU_CTL) &~ BACKLIGHT_DUTY_CYCLE_MASK) | v);
        (void) INREG(BLC_PWM_CPU_CTL);
-        printf ("set backlight to %d%%\n", v * 100 / max);
+        printf ("set backlight to %.2f%%\n", v * 100.0 / max);
    }

    return 0;


Just added color management to a graphics program I use a lot. Pretty proud of myself.
Also found this nine year old bug in firefox that really should have been fixed nine years ago now (videos don't get color corrected even though everything else does). [bugzilla.mozilla.org] https://bugzilla.mozilla.org/show_bug.cgi?id=789871

It's stuff like that that makes me want all monitors to have a 3D LUT built in, instead of that being relegated to professional equipment. But for that to happen a whole fuckton of consumers would have to buy and understand colorimeters enough to know they wanted it. I don't think I can go back now.

This post has been edited by dragontamer8740: Aug 10 2021, 07:18
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2021, 13:28
Post #6477
Wayward_Vagabond



ii-Kagen ni Shiro.
*********
Group: Gold Star Club
Posts: 6,305
Joined: 22-March 09
Level 387 (Dovahkiin)


I'd forgotten what I disliked about the radio in the car so much- the display cannot be read with sunglasses on. It just goes black and rainbowy.
Looking into upgrading the truck's radio, starting to get tired of 16 channels called '01' through '16' and no zones. 40 channel would be nice, but may be going to a digital one with VFD screen and 128 personalities and alphanumeric names.
typos...

This post has been edited by Wayward_Vagabond: Aug 10 2021, 17:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2021, 15:43
Post #6478
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


QUOTE(Wayward_Vagabond @ Aug 10 2021, 07:28) *

I'd forgotten what I disliked about the radio in the car so much- the display cannot be read with sunglasses on. It just goes black and rainbowy.
Are these sunglasses polarized, then?

Thought: not CB/HAM radio or anything, but I liked the factory radio in my old Volvo 850 (model SC-815 or SC-816) most of any car I've owned, except for the lack of an aux port. So many sliders and knobs to control things, no menu system. Lots of "favorites" buttons (12 for FM, 6 for AM). Reflective LCD with frontlight was easily visible in all conditions. If I remember correctly, I think all the buttons had backlighting behind their legends, so they could be seen at night. Had CD and cassette capability. Was absolutely heavenly.

You pulled the volume dial out and rotated it to control the panning. And everything was immensely tactile; there was a "bump" on each slider and on the panning control at their central points so you didn't even have to look down to tweak things. There was even that gap between buttons "3" and "4" as a touch-based guide so you could tell what preset button you were reaching for, like the gaps between "F*" keys on good PC keyboards.

I will never find an aftermarket head unit that good for my 240. They've all got menu-driven, transmissive backlit displays and ugly early 2000's aftermarket radio aesthetics (they look like bad Winamp skins).
And forget about modern car touch screen head units. Utter shit. Volvo had this figured out in 1993; why they or anyone else would move to touch screens is beyond me (and proof that companies no longer care what people actually need but just brand ethos and mimicing Apple/Tesla designs poorly).
(IMG:[i.imgur.com] https://i.imgur.com/GzK893D.jpg)
Best pic I can find of one in the dark; I think this one's actually in a V70 which was just an 850 facelift with a stupid horrible electric throttle module at first:
(IMG:[www.matthewsvolvosite.com] https://www.matthewsvolvosite.com/images/radio_bulb_replacement11.jpg)
Only other problem was it didn't use any sort of standard connectors/wiring. That was sad.

This post has been edited by dragontamer8740: Aug 10 2021, 16:14
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 10 2021, 20:31
Post #6479
Moonlight Rambler



Let's dance.
*********
Group: Gold Star Club
Posts: 6,500
Joined: 22-August 12
Level 373 (Dovahkiin)


Just wrote another bourne shell script; this one lets me set my backlight to an approximate cd/m² value (it calculates an appropriate sysfs value for the given input, finding derivatives in the dumbest way possible: Just calculating a linear slope between every measured point.

Anyway, Here's my derivatives (slopes on intervals) plotted against sysfs values. Pretty wild ride, but when you notice the scale it doesn't seem so wild anymore. Also, I've spent too long on this already and I gave the colorimeter back so I can't remeasure.

I suspect that the jumps are because of the ACPI brightness adjustments, which I measured prior to measuring the intel_backlight adjustments. Maybe the panel warmed up while I was doing that. Anyway, tiny intervals aren't very good for measuring at so I should have probably removed those entries from my table and stuck with the more regular ones.

Fortunately, the way I wrote my script I can just delete or insert lines arbitrarily into my data table and not have to make any other changes.

I do know for a fact that the jump at the very end is accurate, however.

X AXIS: sysfs values measured at
Y AXIS: Δ(cd/m²)/Δ(sysfs value)
(yes, I'm not measuring on either side, just slopes between them. Half of my problem right there).
[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/JLLeAfbg.png)
Bezier curve smoothed in gnuplot might be more accurate; if I ever revisit this I might try applying something like that to my table.
[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/HWT7WzZg.png)

Original data collected. Intervals are pretty regular except where the ACPI levels butted in (very tiny irregular intervals). Maybe I should have just done a regression.
X AXIS: sysfs values
Y AXIS: measured brightness in cd/m²
[i.imgur.com] (IMG:[i.imgur.com] https://i.imgur.com/GUpw5JLg.png)

I never get a chance to use gnuplot. How "fun."
I had to implement decimal comparisons (by basically multiplying by powers of ten to remove all decimal points) to avoid bash-isms. Totally worth it. /s

This post has been edited by dragontamer8740: Aug 10 2021, 21:11
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 11 2021, 16:12
Post #6480
cate_chan



Technekololigy Enthusiast
****
Group: Members
Posts: 406
Joined: 4-May 18
Level 114 (Ascended)


so I had this entire idea of 'some simple util for controlling backlight that just uses sysfs' with the twist of 'but itll copy xbacklight parameters and be called something like ybacklight'.
turns out many others also had that idea, someone even exactly: [github.com] https://github.com/yath/ybacklight

I really wish this would always happen when I have these stupid very specific ideas, it would save me a lot of time.
though it does lack a udev rule, and I'm not a huge fan of perl deps, so I might still rewrite it in bash or something
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


455 Pages V « < 322 323 324 325 326 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 23rd August 2025 - 04:05