-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -1,123 +1,124 @@ | |||
1 | 2005-??-??Opie 1.2.2 | 1 | 2005-??-??Opie 1.2.2 |
2 | 2 | ||
3 | 3 | ||
4 | New Features | 4 | New Features |
5 | ------------ | 5 | ------------ |
6 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw, drw) | 6 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw, drw) |
7 | * Opie-Notes: Notes application based on NoteZ (hrw) | 7 | * Opie-Notes: Notes application based on NoteZ (hrw) |
8 | * OPIE-PackageManager: Added two configuration options: "Force recursive", "Verbose fetch" (hrw) | 8 | * OPIE-PackageManager: Added two configuration options: "Force recursive", "Verbose fetch" (hrw) |
9 | 9 | ||
10 | Fixed Bugs | 10 | Fixed Bugs |
11 | ---------- | 11 | ---------- |
12 | * #1695 - Date selector use too small fontsize on VGA screen (hrw) | 12 | * #1695 - Date selector use too small fontsize on VGA screen (hrw) |
13 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) | 13 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) |
14 | * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) | 14 | * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) |
15 | * #1624 - Button settngs changes are applied only after restart (hrw) | 15 | * #1624 - Button settngs changes are applied only after restart (hrw) |
16 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) | 16 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) |
17 | * n.a. - remove hardcoded font size from wellenreiter (hrw) | 17 | * n.a. - remove hardcoded font size from wellenreiter (hrw) |
18 | * n.a. - added patch to build QT/E 2.3.10 with gcc 4.x.x (hrw) | 18 | * n.a. - added patch to build QT/E 2.3.10 with gcc 4.x.x (hrw) |
19 | * n.a. - make blue-pin UI resizable to looks good in any resolution (hrw) | 19 | * n.a. - make blue-pin UI resizable to looks good in any resolution (hrw) |
20 | * n.a. - fix a problem with vCard send to Sony Ericsson k600i (ar) | 20 | * n.a. - fix a problem with vCard send to Sony Ericsson k600i (ar) |
21 | * n.a. - add a patch to build Qt/E 2.3.10 on amd64 with gcc 4.x.x (ar) | 21 | * n.a. - add a patch to build Qt/E 2.3.10 on amd64 with gcc 4.x.x (ar) |
22 | * n.a. - Opie-console fallback to FixedFont settings from qpe.conf in config (hrw) | 22 | * n.a. - Opie-console fallback to FixedFont settings from qpe.conf in config (hrw) |
23 | * n.a. - Set version to 1.2.1 in About applet (hrw) | 23 | * n.a. - Set version to 1.2.1 in About applet (hrw) |
24 | 24 | ||
25 | Internal | 25 | Internal |
26 | -------- | 26 | -------- |
27 | * libopiecore: /etc/oz_version renamed to /etc/openzaurus-version (hrw) | 27 | * libopiecore: /etc/oz_version renamed to /etc/openzaurus-version (hrw) |
28 | * libopiecore: SL6000 (tosa) now uses corgi-bl (Dirk Opfer) | ||
28 | 29 | ||
29 | 2005-09-11Opie 1.2.1 | 30 | 2005-09-11Opie 1.2.1 |
30 | 31 | ||
31 | 32 | ||
32 | New Features | 33 | New Features |
33 | ------------ | 34 | ------------ |
34 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) | 35 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) |
35 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) | 36 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) |
36 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) | 37 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) |
37 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) | 38 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) |
38 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) | 39 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) |
39 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) | 40 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) |
40 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) | 41 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) |
41 | * ZSafe: Made UI conform to Opie standards (drw) | 42 | * ZSafe: Made UI conform to Opie standards (drw) |
42 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) | 43 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) |
43 | * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) | 44 | * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) |
44 | * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) | 45 | * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) |
45 | * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) | 46 | * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) |
46 | * Opie-smb: Added Opie front end for Samba (ljp) | 47 | * Opie-smb: Added Opie front end for Samba (ljp) |
47 | * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) | 48 | * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) |
48 | * Opieplayer: rudimentary podcast support (ljp) | 49 | * Opieplayer: rudimentary podcast support (ljp) |
49 | 50 | ||
50 | Fixed Bugs | 51 | Fixed Bugs |
51 | ---------- | 52 | ---------- |
52 | * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) | 53 | * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) |
53 | - We actually suspend the complete Opie now in that case. | 54 | - We actually suspend the complete Opie now in that case. |
54 | * #1384 - Battery status updated improperly when charging (skyhusker) | 55 | * #1384 - Battery status updated improperly when charging (skyhusker) |
55 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) | 56 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) |
56 | * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) | 57 | * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) |
57 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) | 58 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) |
58 | * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) | 59 | * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) |
59 | * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) | 60 | * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) |
60 | * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) | 61 | * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) |
61 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) | 62 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) |
62 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) | 63 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) |
63 | * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) | 64 | * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) |
64 | * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) | 65 | * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) |
65 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) | 66 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) |
66 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) | 67 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) |
67 | * #1679 - Security PIN plugin is QVGA sized (hrw) | 68 | * #1679 - Security PIN plugin is QVGA sized (hrw) |
68 | * #1682 - Properly resize tab control in OTabWidget (drw) | 69 | * #1682 - Properly resize tab control in OTabWidget (drw) |
69 | * n.a. - always show volume and wireless applet popups inside visible screen (deller) | 70 | * n.a. - always show volume and wireless applet popups inside visible screen (deller) |
70 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) | 71 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) |
71 | * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) | 72 | * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) |
72 | * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) | 73 | * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) |
73 | * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) | 74 | * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) |
74 | * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) | 75 | * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) |
75 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) | 76 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) |
76 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) | 77 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) |
77 | * n.a. - remove hardcoded font size from netsystemtime (hrw) | 78 | * n.a. - remove hardcoded font size from netsystemtime (hrw) |
78 | * n.a. - remove hardcoded font size from checkbook graphs (hrw) | 79 | * n.a. - remove hardcoded font size from checkbook graphs (hrw) |
79 | * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) | 80 | * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) |
80 | 81 | ||
81 | 82 | ||
82 | Internal | 83 | Internal |
83 | -------- | 84 | -------- |
84 | * Make BluezApplet use OTaskbarApplet (mickeyl) | 85 | * Make BluezApplet use OTaskbarApplet (mickeyl) |
85 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) | 86 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) |
86 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) | 87 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) |
87 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) | 88 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) |
88 | * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) | 89 | * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) |
89 | * libopienet: Miscellaneous API cleanups (mickeyl) | 90 | * libopienet: Miscellaneous API cleanups (mickeyl) |
90 | * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) | 91 | * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) |
91 | * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl) | 92 | * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl) |
92 | * libopiecore: Add support for the Sharp SL-C3100 "Borzoi" (mickeyl) | 93 | * libopiecore: Add support for the Sharp SL-C3100 "Borzoi" (mickeyl) |
93 | * libopiecore: Add support for the new Linux Inputsystem Switches type [necessary for auto rotation in 2.6.13] (mickeyl) | 94 | * libopiecore: Add support for the new Linux Inputsystem Switches type [necessary for auto rotation in 2.6.13] (mickeyl) |
94 | * Remove assumptions about default gfx driver ("Transformed") all over the place (mteira,mickeyl) | 95 | * Remove assumptions about default gfx driver ("Transformed") all over the place (mteira,mickeyl) |
95 | * Fix / Optimize number of scanned directories (ljp) | 96 | * Fix / Optimize number of scanned directories (ljp) |
96 | * Use five point mouse calibration to make calibrated mouse drivers work on newer Zaurii (rp,mickeyl) | 97 | * Use five point mouse calibration to make calibrated mouse drivers work on newer Zaurii (rp,mickeyl) |
97 | 98 | ||
98 | 2005-03-25Opie 1.2.0 | 99 | 2005-03-25Opie 1.2.0 |
99 | 100 | ||
100 | Fixed Bugs | 101 | Fixed Bugs |
101 | ---------- | 102 | ---------- |
102 | * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) | 103 | * #1613 - AdvancedFM - scale toolbar icons appropriately (drw) |
103 | * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) | 104 | * #1620 - OFileSelector - show the button on press and not on press on hold (alwin) |
104 | * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) | 105 | * #1473 - Opie-Eye - Same as #1620 but we lack a common FileSystem Button class (zecke) |
105 | * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) | 106 | * n.a. - PackageManager - fix bug where messages show up multiple times in install dialog (drw) |
106 | * n.a.- make qpeglobal.h include qglobal.h (zecke) | 107 | * n.a.- make qpeglobal.h include qglobal.h (zecke) |
107 | 108 | ||
108 | 2005-03-20Opie 1.2.0-rc1 | 109 | 2005-03-20Opie 1.2.0-rc1 |
109 | 110 | ||
110 | 111 | ||
111 | New Features | 112 | New Features |
112 | ------------ | 113 | ------------ |
113 | * Launcher: Support a static background pixmap (mickeyl) | 114 | * Launcher: Support a static background pixmap (mickeyl) |
114 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) | 115 | * LauncherSettings: Choose whether to have a static background pixmap (mickeyl) |
115 | * PackageManager supports the 'lists_dir' ipkg configuration option (drw) | 116 | * PackageManager supports the 'lists_dir' ipkg configuration option (drw) |
116 | * Added hi-res inline images for large resolution devices (drw) | 117 | * Added hi-res inline images for large resolution devices (drw) |
117 | * Improved launcher icons for consistency (ar) | 118 | * Improved launcher icons for consistency (ar) |
118 | * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) | 119 | * Datebook: Added plugin system to datebook so holidays and birthdays from contacts may displayed in datebook (alwin) |
119 | 120 | ||
120 | Fixed Bugs | 121 | Fixed Bugs |
121 | ---------- | 122 | ---------- |
122 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) | 123 | * #1236 - VCards contained empty home and work address entries causing Palms to crash (eilers) |
123 | * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) | 124 | * #1412 - Launcher Settings - fixed default settings for background in Edit tab dialog (drw) |
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 8a7e252..28a1ccf 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -149,195 +149,192 @@ struct z_button z_buttons_6000 [] = { | |||
149 | 149 | ||
150 | // FIXME This gets unnecessary complicated. We should think about splitting the Zaurus | 150 | // FIXME This gets unnecessary complicated. We should think about splitting the Zaurus |
151 | // class up into individual classes. We would need three classes | 151 | // class up into individual classes. We would need three classes |
152 | // | 152 | // |
153 | // Zaurus-Collie (SA-model w/ 320x240 lcd, for SL5500 and SL5000) | 153 | // Zaurus-Collie (SA-model w/ 320x240 lcd, for SL5500 and SL5000) |
154 | // Zaurus-Poodle (PXA-model w/ 320x240 lcd, for SL5600) | 154 | // Zaurus-Poodle (PXA-model w/ 320x240 lcd, for SL5600) |
155 | // Zaurus-Corgi (PXA-model w/ 640x480 lcd, for C700, C750, C760, C860, C3000, C1000, C3100) | 155 | // Zaurus-Corgi (PXA-model w/ 640x480 lcd, for C700, C750, C760, C860, C3000, C1000, C3100) |
156 | // Zaurus-Tosa (PXA-model w/ 480x640 lcd, for SL6000) | 156 | // Zaurus-Tosa (PXA-model w/ 480x640 lcd, for SL6000) |
157 | 157 | ||
158 | void Zaurus::init(const QString& cpu_info) | 158 | void Zaurus::init(const QString& cpu_info) |
159 | { | 159 | { |
160 | qDebug( "Zaurus::init()" ); | 160 | qDebug( "Zaurus::init()" ); |
161 | // Set the time to wait until the system is really suspended | 161 | // Set the time to wait until the system is really suspended |
162 | // the delta between apm --suspend and sleeping | 162 | // the delta between apm --suspend and sleeping |
163 | setAPMTimeOut( 15000 ); | 163 | setAPMTimeOut( 15000 ); |
164 | 164 | ||
165 | // generic distribution code already scanned /etc/issue at that point - | 165 | // generic distribution code already scanned /etc/issue at that point - |
166 | // embedix releases contain "Embedix <version> | Linux for Embedded Devices" | 166 | // embedix releases contain "Embedix <version> | Linux for Embedded Devices" |
167 | if ( d->m_sysverstr.contains( "embedix", false ) ) | 167 | if ( d->m_sysverstr.contains( "embedix", false ) ) |
168 | { | 168 | { |
169 | d->m_vendorstr = "Sharp"; | 169 | d->m_vendorstr = "Sharp"; |
170 | d->m_vendor = Vendor_Sharp; | 170 | d->m_vendor = Vendor_Sharp; |
171 | d->m_systemstr = "Zaurus"; | 171 | d->m_systemstr = "Zaurus"; |
172 | d->m_system = System_Zaurus; | 172 | d->m_system = System_Zaurus; |
173 | m_embedix = true; | 173 | m_embedix = true; |
174 | } | 174 | } |
175 | else | 175 | else |
176 | { | 176 | { |
177 | d->m_vendorstr = "OpenZaurus Team"; | 177 | d->m_vendorstr = "OpenZaurus Team"; |
178 | d->m_systemstr = "OpenZaurus"; | 178 | d->m_systemstr = "OpenZaurus"; |
179 | d->m_system = System_OpenZaurus; | 179 | d->m_system = System_OpenZaurus; |
180 | // sysver already gathered | 180 | // sysver already gathered |
181 | 181 | ||
182 | // OpenZaurus sometimes uses the 2.4 (embedix) kernel, check if this is one | 182 | // OpenZaurus sometimes uses the 2.4 (embedix) kernel, check if this is one |
183 | FILE *uname = popen("uname -r", "r"); | 183 | FILE *uname = popen("uname -r", "r"); |
184 | QFile f; | 184 | QFile f; |
185 | QString line; | 185 | QString line; |
186 | if ( f.open(IO_ReadOnly, uname) ) { | 186 | if ( f.open(IO_ReadOnly, uname) ) { |
187 | QTextStream ts ( &f ); | 187 | QTextStream ts ( &f ); |
188 | line = ts.readLine(); | 188 | line = ts.readLine(); |
189 | m_embedix = line.startsWith( "2.4." ); | 189 | m_embedix = line.startsWith( "2.4." ); |
190 | f.close(); | 190 | f.close(); |
191 | } | 191 | } |
192 | pclose(uname); | 192 | pclose(uname); |
193 | } | 193 | } |
194 | 194 | ||
195 | // check the Zaurus model | 195 | // check the Zaurus model |
196 | QString model; | 196 | QString model; |
197 | int loc = cpu_info.find( ":" ); | 197 | int loc = cpu_info.find( ":" ); |
198 | if ( loc != -1 ) | 198 | if ( loc != -1 ) |
199 | model = cpu_info.mid( loc+2 ).simplifyWhiteSpace(); | 199 | model = cpu_info.mid( loc+2 ).simplifyWhiteSpace(); |
200 | else | 200 | else |
201 | model = cpu_info; | 201 | model = cpu_info; |
202 | 202 | ||
203 | if ( model == "SHARP Corgi" ) { | 203 | if ( model == "SHARP Corgi" ) { |
204 | d->m_model = Model_Zaurus_SLC7x0; | 204 | d->m_model = Model_Zaurus_SLC7x0; |
205 | d->m_modelstr = "Zaurus SL-C700"; | 205 | d->m_modelstr = "Zaurus SL-C700"; |
206 | } else if ( model == "SHARP Shepherd" ) { | 206 | } else if ( model == "SHARP Shepherd" ) { |
207 | d->m_model = Model_Zaurus_SLC7x0; | 207 | d->m_model = Model_Zaurus_SLC7x0; |
208 | d->m_modelstr = "Zaurus SL-C750"; | 208 | d->m_modelstr = "Zaurus SL-C750"; |
209 | } else if ( model == "SHARP Husky" ) { | 209 | } else if ( model == "SHARP Husky" ) { |
210 | d->m_model = Model_Zaurus_SLC7x0; | 210 | d->m_model = Model_Zaurus_SLC7x0; |
211 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; | 211 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; |
212 | } else if ( model == "SHARP Boxer" ) { | 212 | } else if ( model == "SHARP Boxer" ) { |
213 | d->m_model = Model_Zaurus_SLC7x0; | 213 | d->m_model = Model_Zaurus_SLC7x0; |
214 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; | 214 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; |
215 | } else if ( model == "SHARP Poodle" ) { | 215 | } else if ( model == "SHARP Poodle" ) { |
216 | d->m_model = Model_Zaurus_SLB600; | 216 | d->m_model = Model_Zaurus_SLB600; |
217 | d->m_modelstr = "Zaurus SL-B500 or SL-5600"; | 217 | d->m_modelstr = "Zaurus SL-B500 or SL-5600"; |
218 | } else if ( model == "Sharp-Collie" || model == "Collie" ) { | 218 | } else if ( model == "Sharp-Collie" || model == "Collie" ) { |
219 | d->m_model = Model_Zaurus_SL5500; | 219 | d->m_model = Model_Zaurus_SL5500; |
220 | d->m_modelstr = "Zaurus SL-5500 or SL-5000d"; | 220 | d->m_modelstr = "Zaurus SL-5500 or SL-5000d"; |
221 | } else if ( model == "SHARP Tosa" ) { | 221 | } else if ( model == "SHARP Tosa" ) { |
222 | d->m_model = Model_Zaurus_SL6000; | 222 | d->m_model = Model_Zaurus_SL6000; |
223 | d->m_modelstr = "Zaurus SL-6000"; | 223 | d->m_modelstr = "Zaurus SL-6000"; |
224 | } else if ( model == "SHARP Spitz" ) { | 224 | } else if ( model == "SHARP Spitz" ) { |
225 | d->m_model = Model_Zaurus_SLC3000; | 225 | d->m_model = Model_Zaurus_SLC3000; |
226 | d->m_modelstr = "Zaurus SL-C3000"; | 226 | d->m_modelstr = "Zaurus SL-C3000"; |
227 | } else if ( model == "SHARP Akita" ) { | 227 | } else if ( model == "SHARP Akita" ) { |
228 | d->m_model = Model_Zaurus_SLC1000; | 228 | d->m_model = Model_Zaurus_SLC1000; |
229 | d->m_modelstr = "Zaurus SL-C1000"; | 229 | d->m_modelstr = "Zaurus SL-C1000"; |
230 | } else if ( model == "SHARP Borzoi" ) { | 230 | } else if ( model == "SHARP Borzoi" ) { |
231 | d->m_model = Model_Zaurus_SLC3100; | 231 | d->m_model = Model_Zaurus_SLC3100; |
232 | d->m_modelstr = "Zaurus SL-C3100"; | 232 | d->m_modelstr = "Zaurus SL-C3100"; |
233 | } else { | 233 | } else { |
234 | d->m_model = Model_Zaurus_SL5500; | 234 | d->m_model = Model_Zaurus_SL5500; |
235 | d->m_modelstr = "Unknown Zaurus"; | 235 | d->m_modelstr = "Unknown Zaurus"; |
236 | } | 236 | } |
237 | 237 | ||
238 | // set path to backlight device in kernel 2.6 | 238 | // set path to backlight device in kernel 2.6 |
239 | switch ( d->m_model ) | 239 | switch ( d->m_model ) |
240 | { | 240 | { |
241 | case Model_Zaurus_SLB600: // fallthrough | 241 | case Model_Zaurus_SLB600: // fallthrough |
242 | case Model_Zaurus_SL5500: | 242 | case Model_Zaurus_SL5500: |
243 | m_backlightdev = "/sys/class/backlight/locomo-backlight/"; | 243 | m_backlightdev = "/sys/class/backlight/locomo-backlight/"; |
244 | break; | 244 | break; |
245 | case Model_Zaurus_SL6000: | ||
246 | m_backlightdev = "/sys/class/backlight/tosa-bl/"; | ||
247 | break; | ||
248 | default: | 245 | default: |
249 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; | 246 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; |
250 | } | 247 | } |
251 | 248 | ||
252 | // set initial rotation | 249 | // set initial rotation |
253 | switch( d->m_model ) | 250 | switch( d->m_model ) |
254 | { | 251 | { |
255 | case Model_Zaurus_SL6000: // fallthrough | 252 | case Model_Zaurus_SL6000: // fallthrough |
256 | case Model_Zaurus_SLA300: | 253 | case Model_Zaurus_SLA300: |
257 | d->m_rotation = Rot0; | 254 | d->m_rotation = Rot0; |
258 | break; | 255 | break; |
259 | case Model_Zaurus_SLC3100: // fallthrough | 256 | case Model_Zaurus_SLC3100: // fallthrough |
260 | case Model_Zaurus_SLC3000: // fallthrough | 257 | case Model_Zaurus_SLC3000: // fallthrough |
261 | case Model_Zaurus_SLC1000: // fallthrough | 258 | case Model_Zaurus_SLC1000: // fallthrough |
262 | case Model_Zaurus_SLC7x0: | 259 | case Model_Zaurus_SLC7x0: |
263 | initHingeSensor(); | 260 | initHingeSensor(); |
264 | d->m_rotation = rotation(); | 261 | d->m_rotation = rotation(); |
265 | d->m_direction = direction(); | 262 | d->m_direction = direction(); |
266 | break; | 263 | break; |
267 | case Model_Zaurus_SLB600: // fallthrough | 264 | case Model_Zaurus_SLB600: // fallthrough |
268 | case Model_Zaurus_SL5000: // fallthrough | 265 | case Model_Zaurus_SL5000: // fallthrough |
269 | case Model_Zaurus_SL5500: // fallthrough | 266 | case Model_Zaurus_SL5500: // fallthrough |
270 | default: | 267 | default: |
271 | d->m_rotation = Rot270; | 268 | d->m_rotation = Rot270; |
272 | } | 269 | } |
273 | 270 | ||
274 | // set default qte driver | 271 | // set default qte driver |
275 | switch( d->m_model ) | 272 | switch( d->m_model ) |
276 | { | 273 | { |
277 | case Model_Zaurus_SLC7x0: | 274 | case Model_Zaurus_SLC7x0: |
278 | d->m_qteDriver = "W100"; | 275 | d->m_qteDriver = "W100"; |
279 | break; | 276 | break; |
280 | default: | 277 | default: |
281 | d->m_qteDriver = "Transformed"; | 278 | d->m_qteDriver = "Transformed"; |
282 | } | 279 | } |
283 | 280 | ||
284 | m_leds[0] = Led_Off; | 281 | m_leds[0] = Led_Off; |
285 | 282 | ||
286 | if ( m_embedix ) | 283 | if ( m_embedix ) |
287 | qDebug( "Zaurus::init() - Using the 2.4 Embedix HAL on a %s", (const char*) d->m_modelstr ); | 284 | qDebug( "Zaurus::init() - Using the 2.4 Embedix HAL on a %s", (const char*) d->m_modelstr ); |
288 | else | 285 | else |
289 | qDebug( "Zaurus::init() - Using the 2.6 OpenZaurus HAL on a %s", (const char*) d->m_modelstr ); | 286 | qDebug( "Zaurus::init() - Using the 2.6 OpenZaurus HAL on a %s", (const char*) d->m_modelstr ); |
290 | } | 287 | } |
291 | 288 | ||
292 | void Zaurus::initButtons() | 289 | void Zaurus::initButtons() |
293 | { | 290 | { |
294 | qDebug( "Zaurus::initButtons()" ); | 291 | qDebug( "Zaurus::initButtons()" ); |
295 | if ( d->m_buttons ) | 292 | if ( d->m_buttons ) |
296 | return; | 293 | return; |
297 | 294 | ||
298 | d->m_buttons = new QValueList <ODeviceButton>; | 295 | d->m_buttons = new QValueList <ODeviceButton>; |
299 | 296 | ||
300 | struct z_button * pz_buttons; | 297 | struct z_button * pz_buttons; |
301 | int buttoncount; | 298 | int buttoncount; |
302 | switch ( d->m_model ) | 299 | switch ( d->m_model ) |
303 | { | 300 | { |
304 | case Model_Zaurus_SL6000: | 301 | case Model_Zaurus_SL6000: |
305 | pz_buttons = z_buttons_6000; | 302 | pz_buttons = z_buttons_6000; |
306 | buttoncount = ARRAY_SIZE(z_buttons_6000); | 303 | buttoncount = ARRAY_SIZE(z_buttons_6000); |
307 | break; | 304 | break; |
308 | case Model_Zaurus_SLC3100: // fallthrough | 305 | case Model_Zaurus_SLC3100: // fallthrough |
309 | case Model_Zaurus_SLC3000: // fallthrough | 306 | case Model_Zaurus_SLC3000: // fallthrough |
310 | case Model_Zaurus_SLC1000: // fallthrough | 307 | case Model_Zaurus_SLC1000: // fallthrough |
311 | case Model_Zaurus_SLC7x0: | 308 | case Model_Zaurus_SLC7x0: |
312 | if ( isQWS( ) ) | 309 | if ( isQWS( ) ) |
313 | { | 310 | { |
314 | addPreHandler(this); | 311 | addPreHandler(this); |
315 | } | 312 | } |
316 | pz_buttons = z_buttons_c700; | 313 | pz_buttons = z_buttons_c700; |
317 | buttoncount = ARRAY_SIZE(z_buttons_c700); | 314 | buttoncount = ARRAY_SIZE(z_buttons_c700); |
318 | break; | 315 | break; |
319 | default: | 316 | default: |
320 | pz_buttons = z_buttons; | 317 | pz_buttons = z_buttons; |
321 | buttoncount = ARRAY_SIZE(z_buttons); | 318 | buttoncount = ARRAY_SIZE(z_buttons); |
322 | break; | 319 | break; |
323 | } | 320 | } |
324 | 321 | ||
325 | for ( int i = 0; i < buttoncount; i++ ) { | 322 | for ( int i = 0; i < buttoncount; i++ ) { |
326 | struct z_button *zb = pz_buttons + i; | 323 | struct z_button *zb = pz_buttons + i; |
327 | ODeviceButton b; | 324 | ODeviceButton b; |
328 | 325 | ||
329 | b.setKeycode( zb->code ); | 326 | b.setKeycode( zb->code ); |
330 | b.setUserText( QObject::tr( "Button", zb->utext )); | 327 | b.setUserText( QObject::tr( "Button", zb->utext )); |
331 | b.setPixmap( OResource::loadPixmap( zb->pix )); | 328 | b.setPixmap( OResource::loadPixmap( zb->pix )); |
332 | b.setFactoryPresetPressedAction( OQCopMessage( makeChannel ( zb->fpressedservice ), zb->fpressedaction )); | 329 | b.setFactoryPresetPressedAction( OQCopMessage( makeChannel ( zb->fpressedservice ), zb->fpressedaction )); |
333 | b.setFactoryPresetHeldAction( OQCopMessage( makeChannel ( zb->fheldservice ), zb->fheldaction )); | 330 | b.setFactoryPresetHeldAction( OQCopMessage( makeChannel ( zb->fheldservice ), zb->fheldaction )); |
334 | d->m_buttons->append( b ); | 331 | d->m_buttons->append( b ); |
335 | } | 332 | } |
336 | 333 | ||
337 | reloadButtonMapping(); | 334 | reloadButtonMapping(); |
338 | } | 335 | } |
339 | 336 | ||
340 | 337 | ||
341 | 338 | ||
342 | typedef struct sharp_led_status { | 339 | typedef struct sharp_led_status { |
343 | int which; /* select which LED status is wanted. */ | 340 | int which; /* select which LED status is wanted. */ |