/dev/chat

General discussion for unix.stackexchange.com. If you have a q...
Oct 15, 2019 23:59
@derobert thanks m80!
Oct 12, 2019 20:16
For the info, not for the self-realization
Oct 12, 2019 20:16
Thanks @MichaelHomer
Oct 12, 2019 20:16
Turns out I just didn't know what I was doing.
Oct 12, 2019 20:16
POSIX destroying my life. I thought I was just a bad programmer and didn't know what I was doing.
Oct 12, 2019 19:55
Is this a Linux thing, or is Vim being a dick to me? wc -c and wc -m report X + 1 bytes, and on inspection of the content read via the final fgets call, I confirmed there's a newline present.
Oct 12, 2019 19:53
I have a slight issue/problem thing. I'm working on a project for uni, and we need to validate that a file containing text has exactly X bytes. I've handled the text processing, but for some reason the files are always 1 byte longer, even when I carefully type out each character. It appears that there's a gosh darned newline that vim appends when I save and exit the file, which means that everything always appears invalid because of a gosh darned newline.
Sep 16, 2019 13:22
That's a good idea!
Sep 16, 2019 13:11
@FaheemMitha I'm gonna try to make time to read the changelogs, maybe they addressed an Elan touchpad issue. Some things are still kooky. libinput is still wrong a bit, I still can't have my touchpad disabled on typing, and even if I wanted to get rid of the "area" touchpad functionality, it won't let me choose something like "left click only".
Sep 16, 2019 12:59
gotta re-read my question and see if all my issues are fixed.
Sep 16, 2019 12:58
@FaheemMitha So, dunno how it happened, but my mousepad appears to functioning normally again...big update last night with some Xorg stuff and some kernel stuff getting updated, guess it's fixed now, hopefully.
Sep 8, 2019 15:27
@cas Fedora 30
Sep 8, 2019 15:27
0
Q: Determining System Regular Expression Library

UngeheuerI was attempting to use the following regexp in less yesterday: ^\+1[[:space:]]*$, which worked for me in grep. This didn't work in less, so I checked the manpage to see what it does support, and found this: /pattern Search forward in the file for the N-th line containing the pattern. N defa...

Sep 8, 2019 15:14
@terdon I didn't realize the answer to such a question would be so...undefined. Figured it'd be an "oh yea, it's always this" or a "check this environment variable"...should have learned by now that simple answers aren't common...
Sep 8, 2019 03:15
probably a dumb bet...
Sep 8, 2019 03:13
I was betting on being able to use character classes
Sep 8, 2019 03:12
In any case, I probably should have mentioned the regexp I was using: ^\+1[[:space:]]*$
Sep 8, 2019 03:11
So, it's a kinda "usually it's this, but depends" situation?
Sep 8, 2019 01:34
How do I determine the regexp library supplied by system?
Sep 8, 2019 01:33
/pattern
Search forward in the file for the N-th line containing the pattern. N defaults to 1. The pattern is a regular expression, as recognized by the regular expression library supplied by your system. The search starts at the first line displayed (but see the -a and -j options, which change this).
Sep 8, 2019 01:33
I'm trying to use a regexp in less to find improperly formatted lines, but the ones I use with grep aren't working, I get an invalid pattern error. The manpage says:
Sep 4, 2019 02:12
Lol the Onion is gold. "Study: Pregnant Women Can Drink One Bottle Of Wine A Day If Fetus Can Hold Its Alcohol"
Sep 3, 2019 17:15
@FaheemMitha Yea, there are several EE and WW lines relating to Nvidia in the 50 lines I scrolled through out of about 860. How should I attach the log to my question? Get a pastebin link, or filter the doc for lines containing keywords like "input", "elan", etc.?
Sep 3, 2019 17:14
@derobert Thanks!
Sep 3, 2019 17:03
@FaheemMitha Are these "[ 9323.014]" things timestamps in the Xorg log? What do they correspond to? Seconds? Minutes? I'd love to know when log lines actually appeared in the log.
Sep 3, 2019 17:01
@FaheemMitha It might have happened around the time I was setting up my Nvidia GPU. I admittedly never payed attention and have no idea what could have changed, or if it was always logging to both places, etc.
Sep 3, 2019 16:48
@FaheemMitha Did not choose it. It used to log to /var/log/Xorg.DISPLAY.log
Sep 3, 2019 05:50
@FaheemMitha why?
Sep 3, 2019 02:46
Sep 3, 2019 02:36
@FaheemMitha Turns out my Xorg logs are not for display 0, rather they are for display 1, and they are located in $HOME/.local/share/xorg, and there is an Xorg.1.log timestamped today.
Sep 1, 2019 15:14
I think the IntelliJ one should get deleted. 27 views in 5 months means that no one else has that issue.
Sep 1, 2019 15:09
I answered a few of my own questions that never saw any answers. Let me know if the self-answer looks good, or if the question should just get deleted: unix.stackexchange.com/questions/522752/…, unix.stackexchange.com/questions/510118/…, unix.stackexchange.com/questions/533745/….
Sep 1, 2019 14:28
@FaheemMitha Fedora Workstation 30.
Aug 31, 2019 22:43
@FaheemMitha multiple times within the last 7 days
Aug 31, 2019 21:35
@FaheemMitha I've only ever used startx occasionally. I've not started it Xplicitly (lol puns) in the recent past. I thought X was started automatically when the default.target symlink was set to the graphical target for systemd. I must admit a significant amount of ignorance about all of the pieces that go into displaying things on screen and tying together all the hardware to do that.
Aug 31, 2019 21:12
@FaheemMitha Yea, but what's even more suspicious is that it appears the log was last edited on 3 August. It is the Xorg.0.log. I'm guessing something happened to the X server when I was messing with Nvidia? Might explain why stuff isn't getting logged, but I'm not sure. Maybe I need to reinstall Xorg somehow...
Aug 31, 2019 17:56
@FaheemMitha This is my Xorg.0.log, which was last modified on 3 August 2019. pastebin.com/4fuWL2q0
Aug 31, 2019 17:40
What would the four buttons be? Right-click, left-click, middle-click, drag the mouse around? This is a buttonless touchpad.
Aug 31, 2019 17:39
I searched the output for mentions of "elan|Elan" but nothing came up
Aug 31, 2019 17:32
I'd never heard of dmidecode! The output looks really useful.
Aug 31, 2019 17:30
`Handle 0x001D, DMI type 21, 7 bytes
Built-in Pointing Device
Type: Touch Pad
Interface: PS/2
Buttons: 4`
Aug 31, 2019 17:26
Came across this is in dmesg. It must have escaped copy/paste because I was using the touchpad: [ 1856.428680] elan_i2c 5-0015: failed to read report data: -6 Gonna add to the question.
Aug 31, 2019 17:20
I'm guessing part of the change is that I had not yet installed the Nvidia drivers and done everything to set up my dGPU as the old dump shows the Nvidia card didn't have any driver set. But it's odd that the "Display" field no longer has "x11", and the "driver" is set to "none" now. Literally no idea if this means anything...
Aug 31, 2019 17:19
An older version of this dump has Display: x11 server: Fedora Project X.org 1.20.5 driver: vesa unloaded: fbdev,modesetting
Aug 31, 2019 17:18
I just ran inxi -Fxmz and in the section for graphics, I have this line: Display: server: Fedora Project X.org 1.20.5 driver: none tty: N/A
Aug 31, 2019 17:14
@FaheemMitha You asked "do other laptops use this touchpad" I interpreted that as the touchpad model, but I'm guessing you just meant the manufacturer. I have no idea if the model would matter. My guess would be no, as the drivers probably have backwards compatibility for older models. I'm probably gonna go the route of trying to create Xorg configuration files for the touchpad.
Aug 31, 2019 17:08
All the output in my code blocks in the question just show some variation of "elan touchpad"
Aug 31, 2019 17:07
I've seen other questions about elan touchpads, but I'm not sure what this model is.
Aug 31, 2019 17:00
@FaheemMitha Ah, no. Built in touchpad
Aug 31, 2019 16:58
Pretty sure the line is no longer produced.