#c

149 posts · Last used 3d

Back to Timeline
鳥山シュー @toriyamashu@fedibird.com · 3d ago
「ゴマシジミを確認」 https://toriyamaehagaki.jpn.org/fnb_html/notepast202608.html#c 【概要】某所にて、ゴマシジミを4頭確認。本種の複雑で繊細な共生関係と、その生態が織りなす生命の不思議に改めて敬意を感じた話。 #昆虫 #insects #nature #photography #マストドン写真部 【画像】ゴマシジミ(絶滅危惧Ⅱ類)
0
0
0
Brooke Vibber :mediawiki: @bvibber@wikis.world · 5d ago

Jimmy Wales breaks with WMF leadership on Littler Mendelson "union avoidance" firm:

I was not aware when I said that no union busting law firms had been hired that Littler Mendelson had been hired. When I found out, I immediately emailed the WMF to say that I think it was a mistake and to recommend firing them immediately. -- Jimbo Wales 00:41, 9 August 2026 (UTC)

https://en.wikipedia.org/wiki/User_talk:Jimbo_Wales#c-Jimbo_Wales-20260809004100-Femke-20260802182900

8
0
12
今日の本 @kyonohon@fedibird.com · Aug 05, 2026
#今日の本 は『朝びらき丸東の海へ』。エドマンドとルーシィは、おばさんの家で夏休みを過ごしています。8月6日、二人をからかいに来たいとこのユースチスは、部屋に飾られた海の絵が動いたような気がしました。あっという間に、3人は本物の波の中に巻き込まれていきます。 https://www.iwanami.co.jp/book/b254722.html 【書誌情報】 #朝びらき丸東の海へ 改版 #ナルニア国ものがたり 3 #C・S・ルイス 作 #瀬田貞二#岩波書店 1986.6
0
0
0
Robert Sanscartier @Snoro@mastodon.social · Aug 05, 2026
#Bourgogne #CôteDOr #Nièvre #SaôneEtLoire #Yonne #BourgogneFrancheComté #France En Bourgogne, le climat affecte les vendanges à veni : "Les raisins sont tout petits, tout durs" À cause des canicules à répétition & de la sécheresse, les vendanges sont une nouvelle fois précoces. En Champagne, la publication des bans a été avancée au 12 août. Mais du côté de nos vignobles bourguignons, la réponse se fait encore attendre en fonction des appellations https://france3-regions.franceinfo.fr/bourgogne-franche-comte/cote-d-or/des-vendanges-precoces-en-bourgogne-pas-pour-toutes-les-appellations-il-faudra-attendre-les-resultats-des-prelevements-3397105.html #ChangementClimatique
0
0
0
Stéphane Charette 🇨🇦 @charette@mstdn.ca · Aug 04, 2026
C and C++ developers often use !, && and ||. Many don't know that not, and and or (among others) have been part of C and C++ for 3 decades. They were introduced to C in 1995, and to C++ in 1998. if (!ok) if (not ok) if (var_a && var_b) if (var_a and var_b) if (var_c || var_d) if (var_c or var_d) Personally, I much prefer using the keywords not, and, and or. I find it makes the code much easier to read naturally. #C #Cpp
1
2
1
Dorothea Lange @DorotheaLange@mastodon.ozioso.online · Aug 03, 2026
Untitled photo, possibly related to: Migrant family cleaning up. Near Vale, Malheur County, Oregon #MalheurCounty #Oregon #C-EDVIS #undefined #photography #DorotheaLange https://www.loc.gov/pictures/item/2017773812/
0
0
0
John Goerzen @jgoerzen@floss.social · Aug 03, 2026
Yes, the guy that resurrected UMN #gopher is at it again. This time, I've made the first new #Kermit release in 15 years! https://changelog.complete.org/archives/44456-celebrating-45-years-of-kermit-with-the-first-new-c-kermit-release-in-15-years-and-working-with-a-decades-old-c-codebase This protocol, originally for serial lines, lives on and I use it as a powerful ssh wrapper daily. I added a modern test suite, fixed a ton of bugs, added IPv6 support. And, rather to my surprise, ENJOYED working in a legacy #C codebase. 1/
Quoting
John Goerzen @jgoerzen@changelog.complete.org
Screen Power Saving in the Linux Console

I just made up a Debian trixie setup that has no need for a GUI. In fact, I rarely use the text console either. However, because the machine is dual boot and also serves another purpose, it’s connected to my main monitor and KVM switch.

The monitor has three inputs, and when whatever display it’s set to goes into powersave mode, it will seek out another one that’s active and automatically switch to it.

You can probably see where this is heading: it’s really inconvenient if one of the inputs never goes into powersave mode. And, of course, it wastes energy.

I have concluded that the Linux text console has lost the ability to enter powersave mode after an inactivity timeout. It can still do screen blanking — setting every pixel to black — but that is a distinct and much less useful thing.

You can do a lot of searching online that will tell you what to do. Almost all of it is wrong these days. For instance, none of these work:

  • Anything involving vbetool. This is really, really old advice.
  • Anything involving xset, unless you’re actually running a GUI, which is not the point of this post.
  • Anything involving setterm or the kernel parameters video=DPMS or consoleblank.
  • Anything involving writing to paths under /sys, such as ones ending in dpms.

Why is this?

Well, we are on at least the third generation of Linux text console display subsystems. (Maybe more than 3, depending on how you count.) The three major ones were:

  1. The VGA text console
  2. fbdev
  3. DRI/KMS

As I mentioned recently in my post about running an accurate 80×25 DOS-style console on modern Linux, the VGA text console mode is pretty much gone these days. It relied on hardware rendering of the text fonts, and that capability simply isn’t present on systems that aren’t PCs — or even on PCs that are UEFI, which is most of them now.

fbdev, or a framebuffer console under earlier names, has been in Linux since the late 1990s. It was the default for most distros until more recently. It supported DPMS powersave modes, and most of the instructions you will find online reference it.

Nowadays, the DRI/KMS system is used for graphics. Unfortunately, it is targeted mainly at X11 and Wayland. It is also used for the text console, but things like DPMS-enabled timeouts were never implemented there.

You can find some manual workarounds — for instance, using ddcutil or similar for an external monitor, or adjusting the backlight files under /sys on a laptop. But these have a number of flaws — making unwanted brightness adjustments, and not automatically waking up on keypress among them.

My workaround

I finally gave up and ran apt-get install xdm. Then in /etc/X11/xdm/Xsetup, I added one line:


xset dpms 0 0 120

Now the system boots into an xdm login screen, and shuts down the screen after 2 minutes of inactivity. On the rare occasion where I want a text console from it, I can switch to it and it won’t have a timeout, but I can live with that.

Thus, quite hopefully, concludes my series of way too much information about the Linux text console!

Open quoted post
59
8
43
Sam at BLAG @blag@typo.social · Aug 03, 2026
Lovely pair (trio if you count the strange frame) on a wall in Céret, French Catalonia, sent to me by roving correspondent Anna Rothwell. At the top is a palimpsest with the most prominent layer looking like "Salon Raymond, Rue du Commerce". Below is "Chocolat Aiguebelle", which appears to be still trading with the slogan "Your favorite chocolate since 1868". #Ghostsigns #Palimpsest #Céret #Catalonia #France #Chocolate
5
1
8
Jeff Hall - PCIGuru :verified: @jbhall56@infosec.exchange · Jul 30, 2026
0
1
0