backspace doesn't work correctly with termios
hi all i have problem with backspace in serial communication. this is my scenario: i have three box. box number 1 is windows system, number 2 is freeBSD8.2 and number 3 is cisco router. from box number 1 i connect to the box number 2 by putty and run a serial program on box number 2 that connects to box number 3 via a serial card. this serial program uses termios structure and manage opening, reading, writing and closing serial ports. my problem is: when i connect to box number 2 via putty, everything is okand backspace works correctly but when i run serial program and connect to the box number 3 via it, backspace do not work correctly and print ^? on screen. i searched a lot and check stty erase and erase2 options. moreover i set VERASE in termios too but nothing happened. what is the correct setting for termios to identify backspace as it should be? how can i understand what key mappings is done when i press backspace in box number 1 to erase character in the terminal of box number 3? i think some thing is wrong in termios options that causes mismatch in backspace translation. this problem has kept me busy for more than a month and i really don't know what should i do to solve it. any comments or hints are really appreciated. motlagh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
From: paranormal paranor...@isgroup.com.ua Subject: Re: which X driver for NVIDIA Quadro FX 570M? To: freebsd-questions@freebsd.org Date: Wed, 06 Feb 2013 03:23:40 +0200 I have t61p with mentioned card. x11/nvidia-driver works well for me (at least quake, doom, compiz work). Thanks for all the replies. I bought a T61p for 220 GBP - what bliss! BIOS update - no problem HEAD r246552 - no problem wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem sound with hdac0: Intel 82801H HDA Controller - no problem CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device and sysutils/cdrtools-devel - no problem X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem flash as per http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem In fact, no problems at all! I can't recommend it enough. Anton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote: From: paranormal paranor...@isgroup.com.ua Subject: Re: which X driver for NVIDIA Quadro FX 570M? To: freebsd-questions@freebsd.org Date: Wed, 06 Feb 2013 03:23:40 +0200 I have t61p with mentioned card. x11/nvidia-driver works well for me (at least quake, doom, compiz work). Thanks for all the replies. I bought a T61p for 220 GBP - what bliss! BIOS update - no problem HEAD r246552 - no problem wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem sound with hdac0: Intel 82801H HDA Controller - no problem CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device and sysutils/cdrtools-devel - no problem X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem flash as per http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem In fact, no problems at all! I can't recommend it enough. Anton Suspend and resume? cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pkg_add -r broken for 9.1
Because of a missing link at freebsd.org, pkg_add -r pkgname does not work I hand modify the source code and put 9-stable above 9.1-RELEASE to get around the problem in main.c ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
On Tue, 12 Feb 2013 00:30:59 +1100 (EST), Ian Smith wrote: On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote: From: paranormal paranor...@isgroup.com.ua Subject: Re: which X driver for NVIDIA Quadro FX 570M? To: freebsd-questions@freebsd.org Date: Wed, 06 Feb 2013 03:23:40 +0200 I have t61p with mentioned card. x11/nvidia-driver works well for me (at least quake, doom, compiz work). Thanks for all the replies. I bought a T61p for 220 GBP - what bliss! BIOS update - no problem HEAD r246552 - no problem wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem sound with hdac0: Intel 82801H HDA Controller - no problem CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device and sysutils/cdrtools-devel - no problem X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem flash as per http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem In fact, no problems at all! I can't recommend it enough. Anton Suspend and resume? I'd be interested in that, too (to possibly transform this knowledge to the T60p I have). And docking station support (if you have it)? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
From smi...@nimnet.asn.au Mon Feb 11 13:49:38 2013 On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote: From: paranormal paranor...@isgroup.com.ua Subject: Re: which X driver for NVIDIA Quadro FX 570M? To: freebsd-questions@freebsd.org Date: Wed, 06 Feb 2013 03:23:40 +0200 I have t61p with mentioned card. x11/nvidia-driver works well for me (at least quake, doom, compiz work). Thanks for all the replies. I bought a T61p for 220 GBP - what bliss! BIOS update - no problem HEAD r246552 - no problem wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem sound with hdac0: Intel 82801H HDA Controller - no problem CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device and sysutils/cdrtools-devel - no problem X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem flash as per http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem In fact, no problems at all! I can't recommend it enough. Anton Suspend and resume? I guess no... However, I'm very ignorant of suspend/resume, so not sure I'm doing the right thing. - the T61p manual details standby and hibernation modes. Is this what you refer to by suspend? I can go into standby with Fn+F4, or with acpiconf -s 3 but can't seem to get back. The disk starts, but the screen is corrupted, kind of black with very few white dots. I have to power off/on. The Fn+F12, hibernation mode code, does not seem to do anything. - I've had a quick look at acpi(4) and apm(8). I have: hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.s4bios: 0 - Anything I should check/test in BIOS? I see that power management is enabled in BIOS. Is that enough? Anton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pkg_add -r broken for 9.1
elhosots wrote: Because of a missing link at freebsd.org, pkg_add -r pkgname does not work I hand modify the source code and put 9-stable above 9.1-RELEASE to get around the problem in main.c Works fine for me. You did not scan the questions archives. This problem has been covered many times and it has nothing to do with modifying main.c source. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: backspace shows ^? in serial communications
thanks Robert, i try it before but nothing happened. do you know how i can set erase and erase2 for stty via termios structure? and what should be their value to backspace correct well? On Wed, Feb 6, 2013 at 3:13 PM, Robert Bonomi bon...@mail.r-bonomi.comwrote: From owner-freebsd-questi...@freebsd.org Wed Feb 6 00:19:04 2013 Date: Wed, 6 Feb 2013 09:44:37 +0330 Subject: backspace shows ^? in serial communications From: s m sam.gh1...@gmail.com To: freebsd-questions freebsd-questions@freebsd.org hi all i have a problem with backspace in serial communications. i have a freebsd8.2 box with a serial card on it. when i connect to other freebsd box via serial port backspace does not act as i expected. backspace shows ^? on screen. i searched alot and find out that stty has two parameters -erase and erase2- to identify erase characters in terminal and they should be set correctly. i set erase and erase2 to ^? by stty erase \^? and stty erase2 \^? commands but nothing happened. please let me know how i can fix it. i know it is simple issue but i really do not know how to do that. stty erase {press the backspace key} Then hit the enter/return key ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
On Mon, 11 Feb 2013 14:28:30 GMT, Anton Shterenlikht wrote: I guess no... However, I'm very ignorant of suspend/resume, so not sure I'm doing the right thing. For those who use the laptop in transportable mode (i. e. not on the desktop as a desktop-PC substitute), those features might be interesting in order to save power. - the T61p manual details standby and hibernation modes. Is this what you refer to by suspend? Both are _different_ kinds, if I remember correctly. Standby stores machine states in RAM and buffers it with the battery power. This mode still requires power. This is ACPI states S2 and S3. Hibernate stores machine data somewhere on hard disk or SSD. This mode does not require power. This is ACPI state S4. I can go into standby with Fn+F4, or with acpiconf -s 3 but can't seem to get back. The disk starts, but the screen is corrupted, kind of black with very few white dots. That seems to indicate that the GPU memory data is lost. A typical problem with those sleep states. - I've had a quick look at acpi(4) and apm(8). APM is not in use anymore. ACPI has taken that functionality at the point in time when APM has been brought to a fully functional state. I have: hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.s4bios: 0 From http://static.usenix.org/event/usenix02/tech/freenix/full_papers/watanabe/watanabe_html/node6.html you can see: S3: sleep states. In these states, memory contexts are held but CPU contexts are lost. The differences between S2 and S3 are in CPU re-initialization done by firmware and device re-initialization. S4: a sleep state in which contexts are saved to disk. The context will be restored upon the return to S0. This is identical to soft-off for hardware. This state can be implemented by either OS or firmware. S5: the soft-off state. All activity will stop and all contexts are lost. - Anything I should check/test in BIOS? The obvious things, but I assume the presets are already fine for a laptop. I see that power management is enabled in BIOS. Is that enough? It should be. Note that PM can also include things like spinning down disks or reducing CPU power. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
dump issue
Will someone please confirm or deny that (UFS) journaling and dump -L continue to be incompatible? Respectfully, Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
split-logfile
I've made the switch from apache to nginx for all the web servers I run. One thing that was missing from the nginx installs was the perl script that is used in apache-land to split a single server access file into separate files for each virtual host - split-logfile. While I could have continued to use the perl script, I decided to write similar functionality in c. The c language version uses less resources to accomplish the same task more quickly. A c language program with functionality similar to the split-logfile perl script, available here: http://archive.mgm51.com/sources/split-logfile.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
On Mon, 11 Feb 2013 14:28:30 GMT, Anton Shterenlikht wrote: From smi...@nimnet.asn.au Mon Feb 11 13:49:38 2013 On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote: From: paranormal paranor...@isgroup.com.ua Subject: Re: which X driver for NVIDIA Quadro FX 570M? To: freebsd-questions@freebsd.org Date: Wed, 06 Feb 2013 03:23:40 +0200 I have t61p with mentioned card. x11/nvidia-driver works well for me (at least quake, doom, compiz work). Thanks for all the replies. I bought a T61p for 220 GBP - what bliss! BIOS update - no problem HEAD r246552 - no problem wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem sound with hdac0: Intel 82801H HDA Controller - no problem CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device and sysutils/cdrtools-devel - no problem X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem flash as per http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem In fact, no problems at all! I can't recommend it enough. Anton Suspend and resume? I guess no... However, I'm very ignorant of suspend/resume, so not sure I'm doing the right thing. - the T61p manual details standby and hibernation modes. Is this what you refer to by suspend? I can go into standby with Fn+F4, or with acpiconf -s 3 Ok, state S3 is what we call suspend, more precisely suspend to RAM (STR); windows and so most BIOSes call that state standby. but can't seem to get back. The disk starts, but the screen is corrupted, kind of black with very few white dots. I have to power off/on. A common enough tale these days. I try to remain hopeful someone will get a more modern Thinkpad than the T43s (reportedly) or my older T23s (certainly) resuming in one unbroken piece every time again, one day .. The Fn+F12, hibernation mode code, does not seem to do anything. - I've had a quick look at acpi(4) and apm(8). I have: hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.s4bios: 0 S3 is suspend to RAM; S4 suspend to disk (STD, unsupported by FreeBSD); S5 is power off, should work but may bypass some shutdown(8) processing. S4, STD - 'hibernation' - has two varieties; with s4bios the BIOS itself writes machine state and all RAM to disk, usually a preallocated file in an msdosfs slice. I haven't heard of any new boxes supporting this in BIOS for years; windows (since ~'95) and Linux (I'm told) support STD. - Anything I should check/test in BIOS? I see that power management is enabled in BIOS. Is that enough? It should be, but doesn't seem to work on many. When it resumes with messed up screen, can you ping it, or maybe ssh in, or is it dead? If you boot it but don't start X, can it come back from suspend? Frankly, unless you're _really_ keen to get STR working, this could turn into not just a rabbithole, but the whole warren - you'll have to really want to be the bunny! Sounds like a very nice machine otherwise :) cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: dump issue
Snapshots are not yet supported when running with journaled soft updates: Operation not supported :-( On Mon, Feb 11, 2013 at 7:27 AM, Robert Huff roberth...@rcn.com wrote: Will someone please confirm or deny that (UFS) journaling and dump -L continue to be incompatible? Respectfully, Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: /rescue/init wrong permissions
On 11/02/2013 11:07, Joshua Isom wrote: On 2/10/2013 3:22 PM, David Demelier wrote: Hello I've just cross compiled FreeBSD 9.1-RELEASE i386 for an embedded device. After some days and reboot, I just realized that the device does not boot anymore, so I've plugged a serial cable and saw a panic with error : exec /rescue/init: error 13 I checked the permissions and noticed that permissions are only set to read on this file : -r--r--r-- 1 root wheel 5576 10 Feb 2013 rescue/init On my laptop it's -r-xr-xr-x. I have installed it to my embedded device with standard targets such as make installworld and make distribution, which kind of steps set these permissions ? Cheers, Just a quick guess, the file system is mounted as noexec. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Okay it seems I've totally mangled the files, my /rescue/* file were plain C source file. I guess I've probably broke everything when I misuse the -d and -D options from mergemaster. Cheers, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: which X driver for NVIDIA Quadro FX 570M?
From smi...@nimnet.asn.au Mon Feb 11 16:59:49 2013 On Mon, 11 Feb 2013 14:28:30 GMT, Anton Shterenlikht wrote: From smi...@nimnet.asn.au Mon Feb 11 13:49:38 2013 On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote: From: paranormal paranor...@isgroup.com.ua Subject: Re: which X driver for NVIDIA Quadro FX 570M? To: freebsd-questions@freebsd.org Date: Wed, 06 Feb 2013 03:23:40 +0200 I have t61p with mentioned card. x11/nvidia-driver works well for me (at least quake, doom, compiz work). Thanks for all the replies. I bought a T61p for 220 GBP - what bliss! BIOS update - no problem HEAD r246552 - no problem wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem sound with hdac0: Intel 82801H HDA Controller - no problem CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device and sysutils/cdrtools-devel - no problem X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem flash as per http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem In fact, no problems at all! I can't recommend it enough. Anton Suspend and resume? I guess no... However, I'm very ignorant of suspend/resume, so not sure I'm doing the right thing. - the T61p manual details standby and hibernation modes. Is this what you refer to by suspend? I can go into standby with Fn+F4, or with acpiconf -s 3 Ok, state S3 is what we call suspend, more precisely suspend to RAM (STR); windows and so most BIOSes call that state standby. but can't seem to get back. The disk starts, but the screen is corrupted, kind of black with very few white dots. I have to power off/on. A common enough tale these days. I try to remain hopeful someone will get a more modern Thinkpad than the T43s (reportedly) or my older T23s (certainly) resuming in one unbroken piece every time again, one day .. The Fn+F12, hibernation mode code, does not seem to do anything. - I've had a quick look at acpi(4) and apm(8). I have: hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.s4bios: 0 S3 is suspend to RAM; S4 suspend to disk (STD, unsupported by FreeBSD); S5 is power off, should work but may bypass some shutdown(8) processing. S4, STD - 'hibernation' - has two varieties; with s4bios the BIOS itself writes machine state and all RAM to disk, usually a preallocated file in an msdosfs slice. I haven't heard of any new boxes supporting this in BIOS for years; windows (since ~'95) and Linux (I'm told) support STD. - Anything I should check/test in BIOS? I see that power management is enabled in BIOS. Is that enough? It should be, but doesn't seem to work on many. When it resumes with messed up screen, can you ping it, or maybe ssh in, or is it dead? yes, I thought of this, but haven't checked yet. I haven't got a static IP allocated yet, and I somehow can never ssh into a box with DHCP allocated address. If you boot it but don't start X, can it come back from suspend? no, with or without X - same result. Frankly, unless you're _really_ keen to get STR working, this could turn into not just a rabbithole, but the whole warren - you'll have to really want to be the bunny! no, certainly not for me. I'm all for helping committers with testing patches and such, but for me suspend/resume is not really an issue. Sounds like a very nice machine otherwise :) yes, it's definitely better than HP Compaq 6715s I used before. cheers, Ian Thanks Anton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD on Acer C7 Chromebook?
On Tue, Feb 5, 2013 at 5:39 PM, Sergio de Almeida Lenzi lenzi.ser...@gmail.com wrote: A long time ago I swear NEVER ever buy ACER product, the bios is no standard, and they do not care about the clients. It's not meant to be standard. Despite appearances these are not normal laptops. They aren't meant to be PC compatible any more than, say, an iPad is. They're meant to run ChromeOS and play in Google's walled garden. I don't really blame Acer for this; the design does what it's supposed to do. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Chmod of /dev/ulptN
I exactly followed the directions here: http://lists.freebsd.org/pipermail/freebsd-questions/2012-February/238118.html Nontheless, my /dev/lpt0 node still only has permissions set to 0644. Why? What did I do wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Chmod of /dev/ulptN
On Mon, 11 Feb 2013 18:33-0800, Ronald F. Guilmette wrote: I exactly followed the directions here: http://lists.freebsd.org/pipermail/freebsd-questions/2012-February/238118.html Nontheless, my /dev/lpt0 node still only has permissions set to 0644. Why? What did I do wrong? Is this about /dev/ulpt[0-9]+ or about /dev/lpt[0-2]? If the latter is the case, then maybe you should edit /etc/devfs.conf instead. Something along these lines would help: own lpt0 root:wheel perm lpt0 0660 -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org