Categories
- AdSense
- Configurations
- Desktop
- Enlightenment
- Gadjet
- IT News
- Jurnallinux
- linux
- Linux Tips
- Misc
- mobile
- Products
- Programming
- Projects
- Software
- System
- Uncategorized
- wine
Blogroll
[e-users] Scrolling to change desktop broken
After updating e17 recently, I can only scroll to change to desktop to LEFT side and when scrolling to right side nothing happened. Any idea what is wrong with this? D Join Linux on Toshiba Group Group name: linux_on_Toshiba Group home page: http://groups.yahoo.com/group/linux_on_Toshiba Group email address: linux_on_Toshiba@yahoogroups.com Fedora Core 4 – Toshiba and Acer Notebooks personal installation notes Visit http://www.freewebs.com/duckzland Ndiswrapper notes Fedora Core 4 ———————————
Kernel Guide
Never miss a thing. Make Yahoo your homepage.
————————————————————————-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Wednesday ~ February 02, 2008 by admin Posted in linux | No Comments
[e-users] epplets package removed from Debian testing and unstable
epplets in Debian repository has too many outstanding opened bugs. This package was very old anyway (0.8.cvs.2005032801-3.2). ————————————————————————-
Debian bug reports for epplets:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=epplets;dist=unstable
Is there any possibility to submit latest version?
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Wednesday ~ February 02, 2008 by admin Posted in linux | No Comments
Re: [e-users] Problem with temperature module
This is a multi-part message in MIME format. —–BEGIN PGP SIGNED MESSAGE—– Carsten Haitzler (The Rasterman) wrote: Damn! SF filtered it! Try now or get it from there: Regards - – iD8DBQFHqKtxB3MPiq3KlccRAhR1AJ9RmQE45Dm36bGDlGd+CDBsTVkH2ACfXi3a ————–010904030808090307060005 diff -Naur -x .libs -x .deps -x Makefile -x ‘*.in’ -x CVS -x ‘*.am’ -x ‘*.la’ -x ‘*.o’ -x ‘*.edj’ -x ‘*.desktop’ -x tempget -x ‘*.lo’ /opt/e17/src/e17/apps/e/src/modules/temperature/e_mod_config.c ./e_mod_config.c Ecore_List * diff -Naur -x .libs -x .deps -x Makefile -x ‘*.in’ -x CVS -x ‘*.am’ -x ‘*.la’ -x ‘*.o’ -x ‘*.edj’ -x ‘*.desktop’ -x tempget -x ‘*.lo’ /opt/e17/src/e17/apps/e/src/modules/temperature/e_mod_main.h ./e_mod_main.h void config_temperature_module(Config_Face *inst); #endif Ecore_List * result = ecore_list_new(); /* Search each device for temp*_input, these should be snprintf(path, sizeof(path), ————–010904030808090307060005 ————————————————————————- _______________________________________________ ————–010904030808090307060005–
————–010904030808090307060005
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hash: SHA1
| On Tue, 05 Feb 2008 00:37:17 +0100 Fabio Strozzi
| babbled:
|
| no attachment
https://fstrozzi.web.cs.unibo.it/temperature.patch
Fabio G. Strozzi ~ http://fstrozzi.web.cs.unibo.it
—–BEGIN PGP SIGNATURE—–
Version: GnuPG v2.0.7 (GNU/Linux)
gKOrgutXD7HpJIS2JEjKFXs=
=Yy8z
—–END PGP SIGNATURE—–
Content-Type: text/plain;
name=”temperature.diff”
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=”temperature.diff”
— /opt/e17/src/e17/apps/e/src/modules/temperature/e_mod_config.c 2008-01-11 08:33:56.000000000 +0100
+++ ./e_mod_config.c 2008-02-03 11:50:12.000000000 +0100
@@ -125,7 +125,43 @@
case SENSOR_TYPE_LINUX_INTELCORETEMP:
break;
case SENSOR_TYPE_LINUX_I2C:
- therms = temperature_get_i2c_files();
+ therms = temperature_get_bus_files(”i2c”);
+ if (therms)
+ {
+ char *name;
+
+ while ((name = ecore_list_next(therms)))
+ {
+ if (ecore_file_exists(name))
+ {
+ int len;
+
+ sprintf(path, “%s”, ecore_file_file_get(name));
+ len = strlen(path);
+ if (len > 6)
+ path[len - 6] = ”;
+ ecore_list_append(cfdata->sensors, strdup(path));
+ /* TODO: Track down the user friendly names and display them instead.
+ * User friendly names are not available on the system, lm-sensors
+ * contains a database in /etc/sensors.conf, but the format may change,
+ * so the best way to use that database is thru libsensors, but we
+ * don’t want to add any more library dependencies.
+ */
+ }
+ }
+ ecore_list_destroy(therms);
+ }
+
+ ecore_list_first_goto(cfdata->sensors);
+ while ((name = ecore_list_next(cfdata->sensors)))
+ {
+ if (!strcmp(cfdata->inst->sensor_name, name))
+ break;
+ cfdata->sensor++;
+ }
+ break;
+ case SENSOR_TYPE_LINUX_PCI:
+ therms = temperature_get_bus_files(”pci”);
if (therms)
{
char *name;
diff -Naur -x .libs -x .deps -x Makefile -x ‘*.in’ -x CVS -x ‘*.am’ -x ‘*.la’ -x ‘*.o’ -x ‘*.edj’ -x ‘*.desktop’ -x tempget -x ‘*.lo’ /opt/e17/src/e17/apps/e/src/modules/temperature/e_mod_main.c ./e_mod_main.c
— /opt/e17/src/e17/apps/e/src/modules/temperature/e_mod_main.c 2008-01-22 07:21:02.000000000 +0100
+++ ./e_mod_main.c 2008-02-03 11:52:38.000000000 +0100
@@ -407,54 +407,57 @@
}
-temperature_get_i2c_files()
+temperature_get_bus_files(const char* bus)
{
Ecore_List *result;
Ecore_List *therms;
char path[PATH_MAX];
-
+ char busdir[PATH_MAX];
+
result = ecore_list_new();
if (result)
{
- ecore_list_free_cb_set(result, free);
-
- /* Look through all the i2c devices. */
- therms = ecore_file_ls(”/sys/bus/i2c/devices”);
- if (therms)
- {
- char *name;
-
+ ecore_list_free_cb_set(result, free);
+ snprintf(busdir, sizeof(busdir), “/sys/bus/%s/devices”, bus);
+ /* Look through all the devices for the given bus. */
+ therms = ecore_file_ls(busdir);
+ if (therms)
+ {
+ char *name;
+
while ((name = ecore_list_next(therms)))
{
- Ecore_List *files;
-
- /* Search each device for temp*_input, these should be i2c temperature devices. */
- sprintf(path, “/sys/bus/i2c/devices/%s”, name);
- files = ecore_file_ls(path);
- if (files)
- {
- char *file;
-
- while ((file = ecore_list_next(files)))
- {
- if ((strncmp(”temp”, file, 4) == 0) && (strcmp(”_input”, &file[strlen(file) - 6]) == 0))
+ Ecore_List *files;
+
+ /* Search each device for temp*_input, these should be
+ * temperature devices. */
+ snprintf(path, sizeof(path),
+ “%s/%s”, busdir, name);
+ files = ecore_file_ls(path);
+ if (files)
+ {
+ char *file;
+
+ while ((file = ecore_list_next(files)))
+ {
+ if ((!strncmp(”temp”, file, 4)) &&
+ (!strcmp(”_input”, &file[strlen(file) - 6])))
{
- char *f;
-
- sprintf(path, “/sys/bus/i2c/devices/%s/%s”, name, file);
- f = strdup(path);
- if (f)
- ecore_list_append(result, f);
+ char *f;
+
+ snprintf(path, sizeof(path),
+ “%s/%s/%s”, busdir, name, file);
+ f = strdup(path);
+ if (f) ecore_list_append(result, f);
}
- }
- ecore_list_destroy(files);
+ }
+ ecore_list_destroy(files);
}
}
ecore_list_destroy(therms);
- }
- ecore_list_first_goto(result);
+ }
+ ecore_list_first_goto(result);
}
-
return result;
}
— /opt/e17/src/e17/apps/e/src/modules/temperature/e_mod_main.h 2008-01-11 08:33:56.000000000 +0100
+++ ./e_mod_main.h 2008-02-03 10:48:28.000000000 +0100
@@ -21,6 +21,7 @@
SENSOR_TYPE_LINUX_MACMINI,
SENSOR_TYPE_LINUX_I2C,
SENSOR_TYPE_LINUX_ACPI,
+ SENSOR_TYPE_LINUX_PCI,
SENSOR_TYPE_LINUX_PBOOK,
SENSOR_TYPE_LINUX_INTELCORETEMP
} Sensor_Type;
@@ -69,7 +70,7 @@
void temperature_face_update_config(Config_Face *inst);
-Ecore_List *temperature_get_i2c_files(void);
+Ecore_List *temperature_get_bus_files(const char* bus);
diff -Naur -x .libs -x .deps -x Makefile -x ‘*.in’ -x CVS -x ‘*.am’ -x ‘*.la’ -x ‘*.o’ -x ‘*.edj’ -x ‘*.desktop’ -x tempget -x ‘*.lo’ /opt/e17/src/e17/apps/e/src/modules/temperature/tempget.c ./tempget.c
— /opt/e17/src/e17/apps/e/src/modules/temperature/tempget.c 2008-01-22 07:21:02.000000000 +0100
+++ ./tempget.c 2008-02-03 11:18:10.000000000 +0100
@@ -26,18 +26,20 @@
static int poll_cb(void *data);
-temperature_get_i2c_files()
+temperature_get_bus_files(const char* bus)
{
Ecore_List *result;
Ecore_List *therms;
char path[PATH_MAX];
+ char busdir[PATH_MAX];
if (result)
{
ecore_list_free_cb_set(result, free);
- /* Look through all the i2c devices. */
- therms = ecore_file_ls(”/sys/bus/i2c/devices”);
+ snprintf(busdir, sizeof(busdir), “/sys/bus/%s/devices”, bus);
+ /* Look through all the devices for the given bus. */
+ therms = ecore_file_ls(busdir);
if (therms)
{
char *name;
@@ -47,9 +49,9 @@
Ecore_List *files;
- * i2c temperature devices. */
+ * temperature devices. */
snprintf(path, sizeof(path),
- “/sys/bus/i2c/devices/%s”, name);
+ “%s/%s”, busdir, name);
files = ecore_file_ls(path);
if (files)
{
@@ -63,8 +65,7 @@
char *f;
- “/sys/bus/i2c/devices/%s/%s”,
- name, file);
+ “%s/%s/%s”, busdir, name, file);
f = strdup(path);
if (f) ecore_list_append(result, f);
}
@@ -133,7 +134,8 @@
}
else
{
- therms = temperature_get_i2c_files();
+ // try the i2c bus
+ therms = temperature_get_bus_files(”i2c”);
if (therms)
{
char *name;
@@ -151,10 +153,44 @@
sensor_type = SENSOR_TYPE_LINUX_I2C;
sensor_path = strdup(name);
sensor_name = strdup(path);
+ printf(”sensor type = i2c\n”
+ “sensor path = %s\n”
+ “sensor name = %s\n”,
+ sensor_path, sensor_name);
}
}
ecore_list_destroy(therms);
}
+ if (!sensor_path)
+ {
+ // try the pci bus
+ therms = temperature_get_bus_files(”pci”);
+ if (therms)
+ {
+ char *name;
+
+ if ((name = ecore_list_next(therms)))
+ {
+ if (ecore_file_exists(name))
+ {
+ int len;
+
+ snprintf(path, sizeof(path),
+ “%s”, ecore_file_file_get(name));
+ len = strlen(path);
+ if (len > 6) path[len - 6] = ”;
+ sensor_type = SENSOR_TYPE_LINUX_PCI;
+ sensor_path = strdup(name);
+ sensor_name = strdup(path);
+ printf(”sensor type = pci\n”
+ “sensor path = %s\n”
+ “sensor name = %s\n”,
+ sensor_path, sensor_name);
+ }
+ }
+ ecore_list_destroy(therms);
+ }
+ }
}
}
#endif
@@ -208,6 +244,28 @@
ecore_list_destroy(therms);
}
break;
+ case SENSOR_TYPE_LINUX_PCI:
+ therms = ecore_file_ls(”/sys/bus/pci/devices”);
+ if (therms)
+ {
+ char *name;
+
+ while ((name = ecore_list_next(therms)))
+ {
+ snprintf(path, sizeof(path),
+ “/sys/bus/pci/devices/%s/%s_input”,
+ name, sensor_name);
+ if (ecore_file_exists(path))
+ {
+ sensor_path = strdup(path);
+ /* We really only care about the first
+ * one for the default. */
+ break;
+ }
+ }
+ ecore_list_destroy(therms);
+ }
+ break;
case SENSOR_TYPE_LINUX_ACPI:
snprintf(path, sizeof(path),
“/proc/acpi/thermal_zone/%s/temperature”,
@@ -301,6 +359,25 @@
else
goto error;
break;
+ case SENSOR_TYPE_LINUX_PCI:
+ f = fopen(sensor_path, “r”);
+ if (f)
+ {
+ fgets(buf, sizeof(buf), f);
+ buf[sizeof(buf) - 1] = 0;
+
+ /* actually read the temp */
+ if (sscanf(buf, “%i”, &temp) == 1)
+ ret = 1;
+ else
+ goto error;
+ /* Hack for temp */
+ temp = temp / 1000;
+ fclose(f);
+ }
+ else
+ goto error;
+ break;
case SENSOR_TYPE_LINUX_ACPI:
f = fopen(sensor_path, “r”);
if (f)
Content-Type: text/plain; charset=”us-ascii”
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
————–010904030808090307060005
Content-Type: text/plain; charset=”us-ascii”
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users
Wednesday ~ February 02, 2008 by admin Posted in linux | No Comments
