Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Assorted bugs: Intellimouse, nvidia, ls, ntfs assert, etc.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 1:09 am    Post subject: Assorted bugs: Intellimouse, nvidia, ls, ntfs assert, etc. Reply with quote

I've installed Syllable Desktop 0.6.6.

1) It didn't understand my nvidia card so I switched to vesa mode.
2) It didn't find my PS/2 Defender mouse.
3) Navigation over GUI elements is degraded when only keyboard is used (underimplemented?).
4) "bash: cd ~/ntfs_partition_mounted/<TAB><TAB>" displays Cyrillic letters of file names OK (as a list), but "ls <the same folder>" gives ????????? instead of cyrillic letters.
5) ntfs assert: /var/log/kernel reports assertion failure in ntfs_clear_inode called from ntfs_write_inode : kfree of memory that was not kmalloc-ed.
And also reports some subsequent non-assert failures in a form of stack traces.

I can provide any details about my hardware.

The primary problem at question is (2) a mouse.


RE: mouse
~~~~~~~~~~~~~~~~~~~~~~~~~~

The driver detects a PS2 AUX (mouse) port but fails to do somethings with a PS2 mouse a number of times. I'll copy kernel log snippets later: Kaj has educated me that I need a FAT fs to exchange files with other OS'es.

It may seem that I've found a source code glitch with my mouse. A kernel log reports "IMPS2 mouse detected" which means that appserver/appserver/.../ps2mouse/ps2mouse.cpp detected an Intellimouse PS/2 mouse. Maybe developers had no Intellimouse to test stuff, therefore there's no code setting up the mouse for that clause. I.e. it gets detected, but there's no special init (which must be there), only the message is printed and the mouse protocol is not switched (it must be switched, I guess).

It seems there at ps2mouse.cpp init of Intellimouse is underwritten. It seems I understand which line the .cpp lacks. I need to insert that line and recompile and run.

Kaj described a way to compile and test my ps2mouse.cpp approximately. I will try.

END OF MOUSE DESCRIPTION.


RE: ls
~~~~~~~~~~~~~~~~~~~~~~~~~~

Kaj answered: "ls is from GNU CoreUtils. Newer versions may have Unicode support, but we're stuck with our current version for now because newer ones require more support in

Syllable / It could also be a problem in the interfacing between Syllable, CoreUtils and the NTFS driver. Maybe it should communicate somewhere that Unicode is wanted"

END ls



P.S. All levels of debugging are Ok for me, I am software developer with C/C++/asm/debug/profiling/etc. skills.
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 2:03 am    Post subject: Reply with quote

I have trouble searching for stdio.h in a desktop user build.

Installing a development build with a hope to find it.
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 2:59 am    Post subject: Reply with quote

I fetched devel. files for 0.6.6 and built ok there.

I've tried to hack the obvious but did not succeed; mouse doesn't work. It is necessary to compare Linux drivers with Sy.
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Sat Jan 14, 2012 4:34 am    Post subject: Reply with quote

Hello

For the Nvidia card, I don't know your problem, but with a GeForce 6150, I had a black screen.

So I installed Syllable with Vesa and then I changed the refresh rate to 60Hz with 1280x1024 resolution for 17 inches screen.

When you start with Vesa, you have this option in the file "menu.lst": disable_gfx_drivers=true .

I replaced "true" by "false" then I rebooted and Syllable used the module "geforcefx".

The headers are usually in "/resources/indexes/include". You will find "stdio.h" inside. For compiling, you must install:
http://downloads.syllable.org/Syllable/i586/systems/Desktop/0.6.6/SyllableDesktop-0.6.6-development.i586.7z

7z x SyllableDesktop-0.6.6-development.i586.7z
cd SyllableDesktop-0.6.6-development
sh ./install.sh

http://downloads.syllable.org/Syllable/i586/packs/DevelopersDelight/DevelopersDelight-8.i586.zip .

unzip DevelopersDelight-8.i586.zip -d ./
cd DevelopersDelight
sh ./install.sh

and if you need more:
http://downloads.syllable.org/Syllable/i586/packs/PerlPit/PerlPit-6.i586.zip
http://downloads.syllable.org/Syllable/i586/packs/NetworkNecessities/NetworkNecessities-3.i586.zip
http://downloads.syllable.org/Syllable/i586/packs/ShellEssentials/ShellEssentials-1.i586.zip

and here too:
http://web.syllable.org/Syllable/resources.html

Regards
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 3:03 pm    Post subject: Reply with quote

I've said I built all OK. Smile

Re: nvidia

The nvidia driver gave a stack trace, and the kernel killed it, and the PC hung after that with a text screen mode with a screen of messages.
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 4:30 pm    Post subject: Reply with quote

Linux mouse drivers have a lot of extra info:

less psmouse-base.c
Ok
pwd
/home/gouslar/green_meadow/computer_house/linux/kernel-src-2.6.37/linux-2.6.37/drivers/input/mouse
Ok
ls
alps.c amimouse.c atarimouse.c elantech.c gpio_mouse.c hgpk.h Kconfig lifebook.h logips2pp.c Makefile pc110pad.c psmouse.h rpcmouse.c sentelic.h synaptics.c synaptics_i2c.c touchkit_ps2.h trackpoint.h
alps.h appletouch.c bcm5974.c elantech.h hgpk.c inport.c lifebook.c logibm.c logips2pp.h maplemouse.c psmouse-base.c pxa930_trkball.c sentelic.c sermouse.c synaptics.h touchkit_ps2.c trackpoint.c vsxxxaa.c
Ok
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 5:55 pm    Post subject: Reply with quote

I've fixed my Defender mouse! It works! Preparing a small patch for 0.6.6.
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 6:12 pm    Post subject: Reply with quote

[code]
diffstat patch.txt
ps2mouse.cpp | 6 ++++++
1 file changed, 6 insertions(+)
Ok
[/code]

patch.txt BEGINS.
[code]
--- original_0.6.6/ps2mouse.cpp 2012-01-16 06:12:36.000000000 +0800
+++ patched/ps2mouse.cpp 2012-01-15 08:27:12.000000000 +0800
@@ -409,6 +409,7 @@
static unsigned char basic_init[] = { GPM_AUX_ENABLE_DEV, GPM_AUX_SET_SAMPLE, 100 };
static unsigned char imps2_init[] = { GPM_AUX_SET_SAMPLE, 200, GPM_AUX_SET_SAMPLE, 100, GPM_AUX_SET_SAMPLE, 80, };
static unsigned char ps2_init[] = { GPM_AUX_SET_SCALE11, GPM_AUX_ENABLE_DEV, GPM_AUX_SET_SAMPLE, 100, GPM_AUX_SET_RES, 3, };
+ static unsigned char enable[] = { GPM_AUX_ENABLE_DEV, };

g_nSerialDevice = open( "/dev/misc/ps2aux", O_RDWR );
if( g_nSerialDevice < 0 ) {
@@ -447,6 +448,7 @@
if( id == GPM_AUX_ID_IMPS2 ) {
/* Really an intellipoint, so initialise 3 button mode (4 byte packets) */
dbprintf( "IMPS2 mouse detected.\n" );
+ g_nProtocol = IMPS2_PROTOCOL;
} else {
if( id != GPM_AUX_ID_PS2 ) {
dbprintf( "PS2 mouse detected with unknown id (%d).\n", id );
@@ -454,6 +456,10 @@
dbprintf( "PS2 mouse detected.\n" );
}
}
+ if( write_to_mouse( g_nSerialDevice, enable, sizeof( enable ) ) != 0 ) {
+ dbprintf( "PS2 mouse: enabling failed !\n" );
+ return ( false );
+ }
return ( true );
}
[/code]
patch.txt ENDS.[code][/code]

I'll better send it to a developers mailing list, since BBCode is turned off on the forum and a patch becomes unusable.
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sat Jan 14, 2012 7:16 pm    Post subject: Reply with quote

Bogomips, I've tried booting in nvidia mode and it failed.

<stacktrace skipped>
Killed by signal 8
nVidia GeForce 8800 GTS closed

In vesa 1280x800 all (esp. dragging windows) becomes painfully slow.

Cards with closed source specifications must be avoided Smile
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Sun Jan 15, 2012 4:43 am    Post subject: Reply with quote

Excellent work for the mouse. Yes indeed, VESA mode is very slow.
When I saw the performances, I looked for a solution very quickly. Confused
It's a pity for your card. Sad
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sun Jan 15, 2012 5:45 am    Post subject: Reply with quote

Thank you.

Here's Linux kernel's/nouveau driver output about my card (NV50):

Jan 15 07:45:25 greenmeadow kernel: [ 15.348270] [drm] nouveau 0000:05:00.0: Detected an NV50 generation card (0x450300a3)
Jan 15 07:45:25 greenmeadow kernel: [ 15.351499] [drm] nouveau 0000:05:00.0: Attempting to load BIOS image from PRAMIN
Jan 15 07:45:25 greenmeadow kernel: [ 15.410869] [drm] nouveau 0000:05:00.0: ... appears to be valid
Jan 15 07:45:25 greenmeadow kernel: [ 15.410874] [drm] nouveau 0000:05:00.0: BIT BIOS found
Jan 15 07:45:25 greenmeadow kernel: [ 15.410878] [drm] nouveau 0000:05:00.0: Bios version 60.80.18.00
Jan 15 07:45:25 greenmeadow kernel: [ 15.410883] [drm] nouveau 0000:05:00.0: TMDS table version 2.0
Jan 15 07:45:25 greenmeadow kernel: [ 15.410886] [drm] nouveau 0000:05:00.0: BIT table 'd' not found
Jan 15 07:45:25 greenmeadow kernel: [ 15.410889] [drm] nouveau 0000:05:00.0: Found Display Configuration Block version 4.0
Jan 15 07:45:25 greenmeadow kernel: [ 15.410893] [drm] nouveau 0000:05:00.0: Raw DCB entry 0: 04000320 00000028
Jan 15 07:45:25 greenmeadow kernel: [ 15.410897] [drm] nouveau 0000:05:00.0: Raw DCB entry 1: 01000322 00000030
Jan 15 07:45:25 greenmeadow kernel: [ 15.410900] [drm] nouveau 0000:05:00.0: Raw DCB entry 2: 02011310 00000028
Jan 15 07:45:25 greenmeadow kernel: [ 15.410903] [drm] nouveau 0000:05:00.0: Raw DCB entry 3: 02011312 00000030
Jan 15 07:45:25 greenmeadow kernel: [ 15.410906] [drm] nouveau 0000:05:00.0: Raw DCB entry 4: 010223f1 00c1c023
Jan 15 07:45:25 greenmeadow kernel: [ 15.410910] [drm] nouveau 0000:05:00.0: DCB connector table: VHER 0x40 5 14 2
Jan 15 07:45:25 greenmeadow kernel: [ 15.410914] [drm] nouveau 0000:05:00.0: 0: 0x00001030: type 0x30 idx 0 tag 0x07
Jan 15 07:45:25 greenmeadow kernel: [ 15.410918] [drm] nouveau 0000:05:00.0: 1: 0x00002130: type 0x30 idx 1 tag 0x08
Jan 15 07:45:25 greenmeadow kernel: [ 15.410921] [drm] nouveau 0000:05:00.0: 2: 0x00000210: type 0x10 idx 2 tag 0xff
Jan 15 07:45:25 greenmeadow kernel: [ 15.410925] [drm] nouveau 0000:05:00.0: 3: 0x00000211: type 0x11 idx 3 tag 0xff
Jan 15 07:45:25 greenmeadow kernel: [ 15.410928] [drm] nouveau 0000:05:00.0: 4: 0x00000213: type 0x13 idx 4 tag 0xff
Jan 15 07:45:25 greenmeadow kernel: [ 15.410934] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 0 at offset 0xBFB4
Jan 15 07:45:25 greenmeadow kernel: [ 15.470300] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 1 at offset 0xC1BF
Jan 15 07:45:25 greenmeadow kernel: [ 15.540080] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 2 at offset 0xD37B
Jan 15 07:45:25 greenmeadow kernel: [ 15.540094] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 3 at offset 0xD46A
Jan 15 07:45:25 greenmeadow kernel: [ 15.560134] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 4 at offset 0xD621
Jan 15 07:45:25 greenmeadow kernel: [ 15.560140] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table at offset 0xD686
Jan 15 07:45:25 greenmeadow kernel: [ 15.590047] [drm] nouveau 0000:05:00.0: 0xD686: Condition still not met after 20ms, skipping following opcodes
Jan 15 07:45:25 greenmeadow kernel: [ 15.690043] intel8x0_measure_ac97_clock: measured 52475 usecs (2576 samples)
Jan 15 07:45:25 greenmeadow kernel: [ 15.690048] intel8x0: clocking to 46934
Jan 15 07:45:25 greenmeadow kernel: [ 15.839394] adt7475 2-002e: ADT7473 device, revision 0
Jan 15 07:45:25 greenmeadow kernel: [ 15.839399] adt7475 2-002e: Optional features: fan4
Jan 15 07:45:25 greenmeadow kernel: [ 15.854518] [drm] nouveau 0000:05:00.0: Detected monitoring device: adt7473
Jan 15 07:45:25 greenmeadow kernel: [ 15.854530] [drm] nouveau 0000:05:00.0: 1 available performance level(s)
Jan 15 07:45:25 greenmeadow kernel: [ 15.854536] [drm] nouveau 0000:05:00.0: 0: memory 792MHz core 513MHz shader 1188MHz voltage 1300mV fanspeed 100%
Jan 15 07:45:25 greenmeadow kernel: [ 15.854556] [drm] nouveau 0000:05:00.0: c: memory 396MHz core 198MHz shader 1188MHz
Jan 15 07:45:25 greenmeadow kernel: [ 15.870097] [TTM] Zone kernel: Available graphics memory: 511388 kiB.
Jan 15 07:45:25 greenmeadow kernel: [ 15.870101] [TTM] Initializing pool allocator.
Jan 15 07:45:25 greenmeadow kernel: [ 15.870125] [drm] nouveau 0000:05:00.0: Detected 320MiB VRAM
Jan 15 07:45:25 greenmeadow kernel: [ 15.877308] [drm] nouveau 0000:05:00.0: 512 MiB GART (aperture)
Jan 15 07:45:26 greenmeadow kernel: [ 15.933830] [drm] nouveau 0000:05:00.0: DCB encoder 1 unknown
Jan 15 07:45:26 greenmeadow kernel: [ 15.933836] [drm] nouveau 0000:05:00.0: TV-1 has no encoders, removing
Jan 15 07:45:26 greenmeadow kernel: [ 15.934307] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
Jan 15 07:45:26 greenmeadow kernel: [ 15.934310] [drm] No driver support for vblank timestamp query.
Jan 15 07:45:26 greenmeadow kernel: [ 16.111342] [drm] nouveau 0000:05:00.0: allocated 1920x1080 fb: 0x60000000, bo ffff880037dcac00
Jan 15 07:45:26 greenmeadow kernel: [ 16.118833] Console: switching to colour frame buffer device 240x67
Jan 15 07:45:26 greenmeadow kernel: [ 16.123864] fb0: nouveaufb frame buffer device
Jan 15 07:45:26 greenmeadow kernel: [ 16.123866] drm: registered panic notifier
Jan 15 07:45:26 greenmeadow kernel: [ 16.133244] [drm] Initialized nouveau 0.0.16 20090420 for 0000:05:00.0 on minor 0
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sun Jan 15, 2012 5:46 am    Post subject: Reply with quote

That was output of:

uname -a
Linux greenmeadow 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Sun Jan 15, 2012 7:40 am    Post subject: Reply with quote

Here, someone had a similar problem with a GeForce 8800 GS on Syllable 0.6.5:
http://forum.syllable.org/viewtopic.php?t=883
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Sun Jan 15, 2012 7:47 am    Post subject: Reply with quote

Apparently, he had found a partial solution.
http://imageshack.us/photo/my-images/232/2008032318001fp8.jpg/
Back to top
View user's profile Send private message
Gouslar



Joined: 10 Jan 2012
Posts: 26
Location: Irkutsk, Russia

PostPosted: Sun Jan 15, 2012 12:29 pm    Post subject: Reply with quote

My situation was already similar to a screenshot you gave.

I've read the topic you mentioned.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group